3838
3939from .defaults import (
4040 FUSE_ALLOWOTHER_DEFAULT ,
41- LOG_BUFFERS_DEFAULT
41+ LOG_BUFFERS_DEFAULT ,
42+ LOG_ONLYMODIFYOPERATIONS_DEFAULT
4243 )
4344from .filter import filter_pipeline_class
4445from .ipc import receive , end_of_transmission
@@ -81,6 +82,7 @@ def __init__(self,
8182 post_exit_func = None , # called on exit
8283 log_filter = None ,
8384 log_buffers = LOG_BUFFERS_DEFAULT ,
85+ log_only_modify_operations = LOG_ONLYMODIFYOPERATIONS_DEFAULT ,
8486 fuse_allowother = FUSE_ALLOWOTHER_DEFAULT ,
8587 background = False # thread in background
8688 ):
@@ -122,6 +124,8 @@ def __init__(self,
122124 raise TypeError ('log_filter must either be None or of type filter_pipeline_class' )
123125 if not isinstance (log_buffers , bool ):
124126 raise TypeError ('log_buffers must be of type bool' )
127+ if not isinstance (log_only_modify_operations , bool ):
128+ raise TypeError ('log_only_modify_operations must be of type bool' )
125129 if not isinstance (fuse_allowother , bool ):
126130 raise TypeError ('fuse_allowother must be of type bool' )
127131 if not isinstance (background , bool ):
@@ -133,6 +137,7 @@ def __init__(self,
133137 self ._consumer_err_func = consumer_err_func
134138 self ._log_filter = log_filter
135139 self ._log_buffers = log_buffers
140+ self ._log_only_modify_operations = log_only_modify_operations
136141 self ._fuse_allowother = fuse_allowother
137142 self ._background = background
138143
@@ -145,6 +150,8 @@ def __init__(self,
145150 ]
146151 if self ._log_buffers :
147152 command .append ('-b' ) # also log read and write buffers
153+ if self ._log_only_modify_operations :
154+ command .append ('-m' )
148155 if self ._fuse_allowother :
149156 command .append ('-p' )
150157 command .append (self ._directory )
0 commit comments