@@ -65,7 +65,7 @@ impl Request {
65
65
let opcode: fuse_opcode = match FromPrimitive :: from_u32 ( header. opcode ) {
66
66
Some ( op) => op,
67
67
None => {
68
- warn2 ! ( "Ignoring unknown FUSE operation {:u}" , header. opcode)
68
+ warn ! ( "Ignoring unknown FUSE operation {:u}" , header. opcode)
69
69
self . reply_error ( ch, ENOSYS ) ;
70
70
return ;
71
71
} ,
@@ -74,10 +74,10 @@ impl Request {
74
74
// Filesystem initialization
75
75
FUSE_INIT => {
76
76
let arg: & fuse_init_in = data. fetch ( ) ;
77
- debug2 ! ( "INIT({:u}) kernel: ABI {:u}.{:u}, flags {:#x}, max readahead {:u}" , header. unique, arg. major, arg. minor, arg. flags, arg. max_readahead) ;
77
+ debug ! ( "INIT({:u}) kernel: ABI {:u}.{:u}, flags {:#x}, max readahead {:u}" , header. unique, arg. major, arg. minor, arg. flags, arg. max_readahead) ;
78
78
// We don't support ABI versions before 7.6
79
79
if arg. major < 7 || ( arg. major < 7 && arg. minor < 6 ) {
80
- error2 ! ( "Unsupported FUSE ABI version {:u}.{:u}" , arg. major, arg. minor) ;
80
+ error ! ( "Unsupported FUSE ABI version {:u}.{:u}" , arg. major, arg. minor) ;
81
81
self . reply_error ( ch, EPROTO ) ;
82
82
return ;
83
83
}
@@ -101,166 +101,166 @@ impl Request {
101
101
unused : 0 ,
102
102
max_write : MAX_WRITE_SIZE ,
103
103
} ;
104
- debug2 ! ( "INIT({:u}) response: ABI {:u}.{:u}, flags {:#x}, max readahead {:u}, max write {:u}" , header. unique, reply. major, reply. minor, reply. flags, reply. max_readahead, reply. max_write) ;
104
+ debug ! ( "INIT({:u}) response: ABI {:u}.{:u}, flags {:#x}, max readahead {:u}, max write {:u}" , header. unique, reply. major, reply. minor, reply. flags, reply. max_readahead, reply. max_write) ;
105
105
se. initialized = true ;
106
106
self . reply ( ch, Ok ( reply) ) ;
107
107
} ,
108
108
// Any operation is invalid before initialization
109
109
_ if !se. initialized => {
110
- warn2 ! ( "Ignoring FUSE operation {:u} before init" , header. opcode) ;
110
+ warn ! ( "Ignoring FUSE operation {:u} before init" , header. opcode) ;
111
111
self . reply_error ( ch, EIO ) ;
112
112
} ,
113
113
// Filesystem destroyed
114
114
FUSE_DESTROY => {
115
- debug2 ! ( "DESTROY({:u})" , header. unique) ;
115
+ debug ! ( "DESTROY({:u})" , header. unique) ;
116
116
se. filesystem . destroy ( ) ;
117
117
se. destroyed = true ;
118
118
self . reply ( ch, Ok ( ( ) ) ) ;
119
119
}
120
120
// Any operation is invalid after destroy
121
121
_ if se. destroyed => {
122
- warn2 ! ( "Ignoring FUSE operation {:u} after destroy" , header. opcode) ;
122
+ warn ! ( "Ignoring FUSE operation {:u} after destroy" , header. opcode) ;
123
123
self . reply_error ( ch, EIO ) ;
124
124
}
125
125
126
126
FUSE_INTERRUPT => {
127
127
let arg: & fuse_interrupt_in = data. fetch ( ) ;
128
- debug2 ! ( "INTERRUPT({:u}) unique {:u}" , header. unique, arg. unique) ;
128
+ debug ! ( "INTERRUPT({:u}) unique {:u}" , header. unique, arg. unique) ;
129
129
// TODO: handle FUSE_INTERRUPT
130
130
self . reply_error ( ch, ENOSYS ) ;
131
131
} ,
132
132
133
133
FUSE_LOOKUP => {
134
134
let name = data. fetch_str ( ) ;
135
- debug2 ! ( "LOOKUP({:u}) parent {:#018x}, name {:s}" , header. unique, header. nodeid, logstr( name) ) ;
135
+ debug ! ( "LOOKUP({:u}) parent {:#018x}, name {:s}" , header. unique, header. nodeid, logstr( name) ) ;
136
136
self . reply ( ch, se. filesystem . lookup ( header. nodeid , name) ) ;
137
137
} ,
138
138
FUSE_FORGET => {
139
139
let arg: & fuse_forget_in = data. fetch ( ) ;
140
- debug2 ! ( "FORGET({:u}) ino {:#018x}, nlookup {:u}" , header. unique, header. nodeid, arg. nlookup) ;
140
+ debug ! ( "FORGET({:u}) ino {:#018x}, nlookup {:u}" , header. unique, header. nodeid, arg. nlookup) ;
141
141
se. filesystem . forget ( header. nodeid , arg. nlookup as uint ) ; // no reply
142
142
} ,
143
143
FUSE_GETATTR => {
144
- debug2 ! ( "GETATTR({:u}) ino {:#018x}" , header. unique, header. nodeid) ;
144
+ debug ! ( "GETATTR({:u}) ino {:#018x}" , header. unique, header. nodeid) ;
145
145
self . reply ( ch, se. filesystem . getattr ( header. nodeid ) ) ;
146
146
} ,
147
147
FUSE_SETATTR => {
148
148
let arg: & fuse_setattr_in = data. fetch ( ) ;
149
- debug2 ! ( "SETATTR({:u}) ino {:#018x}, valid {:#x}" , header. unique, header. nodeid, arg. valid) ;
149
+ debug ! ( "SETATTR({:u}) ino {:#018x}, valid {:#x}" , header. unique, header. nodeid, arg. valid) ;
150
150
self . reply ( ch, se. filesystem . setattr ( header. nodeid , arg) ) ;
151
151
} ,
152
152
FUSE_READLINK => {
153
- debug2 ! ( "READLINK({:u}) ino {:#018x}" , header. unique, header. nodeid) ;
153
+ debug ! ( "READLINK({:u}) ino {:#018x}" , header. unique, header. nodeid) ;
154
154
self . reply ( ch, se. filesystem . readlink ( header. nodeid ) ) ;
155
155
} ,
156
156
FUSE_MKNOD => {
157
157
let arg: & fuse_mknod_in = data. fetch ( ) ;
158
158
let name = data. fetch_str ( ) ;
159
- debug2 ! ( "MKNOD({:u}) parent {:#018x}, name {:s}, mode {:#05o}, rdev {:u}" , header. unique, header. nodeid, logstr( name) , arg. mode, arg. rdev) ;
159
+ debug ! ( "MKNOD({:u}) parent {:#018x}, name {:s}, mode {:#05o}, rdev {:u}" , header. unique, header. nodeid, logstr( name) , arg. mode, arg. rdev) ;
160
160
self . reply ( ch, se. filesystem . mknod ( header. nodeid , name, arg. mode as mode_t , arg. rdev as dev_t ) ) ;
161
161
} ,
162
162
FUSE_MKDIR => {
163
163
let arg: & fuse_mkdir_in = data. fetch ( ) ;
164
164
let name = data. fetch_str ( ) ;
165
- debug2 ! ( "MKDIR({:u}) parent {:#018x}, name {:s}, mode {:#05o}" , header. unique, header. nodeid, logstr( name) , arg. mode) ;
165
+ debug ! ( "MKDIR({:u}) parent {:#018x}, name {:s}, mode {:#05o}" , header. unique, header. nodeid, logstr( name) , arg. mode) ;
166
166
self . reply ( ch, se. filesystem . mkdir ( header. nodeid , name, arg. mode as mode_t ) ) ;
167
167
} ,
168
168
FUSE_UNLINK => {
169
169
let name = data. fetch_str ( ) ;
170
- debug2 ! ( "UNLINK({:u}) parent {:#018x}, name {:s}" , header. unique, header. nodeid, logstr( name) ) ;
170
+ debug ! ( "UNLINK({:u}) parent {:#018x}, name {:s}" , header. unique, header. nodeid, logstr( name) ) ;
171
171
self . reply ( ch, se. filesystem . unlink ( header. nodeid , name) ) ;
172
172
} ,
173
173
FUSE_RMDIR => {
174
174
let name = data. fetch_str ( ) ;
175
- debug2 ! ( "RMDIR({:u}) parent {:#018x}, name {:s}" , header. unique, header. nodeid, logstr( name) ) ;
175
+ debug ! ( "RMDIR({:u}) parent {:#018x}, name {:s}" , header. unique, header. nodeid, logstr( name) ) ;
176
176
self . reply ( ch, se. filesystem . rmdir ( header. nodeid , name) ) ;
177
177
} ,
178
178
FUSE_SYMLINK => {
179
179
let name = data. fetch_str ( ) ;
180
180
let link = data. fetch_str ( ) ;
181
- debug2 ! ( "SYMLINK({:u}) parent {:#018x}, name {:s}, link {:s}" , header. unique, header. nodeid, logstr( name) , logstr( link) ) ;
181
+ debug ! ( "SYMLINK({:u}) parent {:#018x}, name {:s}, link {:s}" , header. unique, header. nodeid, logstr( name) , logstr( link) ) ;
182
182
self . reply ( ch, se. filesystem . symlink ( header. nodeid , name, link) ) ;
183
183
} ,
184
184
FUSE_RENAME => {
185
185
let arg: & fuse_rename_in = data. fetch ( ) ;
186
186
let name = data. fetch_str ( ) ;
187
187
let newname = data. fetch_str ( ) ;
188
- debug2 ! ( "RENAME({:u}) parent {:#018x}, name {:s}, newparent {:#018x}, newname {:s}" , header. unique, header. nodeid, logstr( name) , arg. newdir, logstr( newname) ) ;
188
+ debug ! ( "RENAME({:u}) parent {:#018x}, name {:s}, newparent {:#018x}, newname {:s}" , header. unique, header. nodeid, logstr( name) , arg. newdir, logstr( newname) ) ;
189
189
self . reply ( ch, se. filesystem . rename ( header. nodeid , name, arg. newdir , newname) ) ;
190
190
} ,
191
191
FUSE_LINK => {
192
192
let arg: & fuse_link_in = data. fetch ( ) ;
193
193
let newname = data. fetch_str ( ) ;
194
- debug2 ! ( "LINK({:u}) ino {:#018x}, newparent {:#018x}, newname {:s}" , header. unique, arg. oldnodeid, header. nodeid, logstr( newname) ) ;
194
+ debug ! ( "LINK({:u}) ino {:#018x}, newparent {:#018x}, newname {:s}" , header. unique, arg. oldnodeid, header. nodeid, logstr( newname) ) ;
195
195
self . reply ( ch, se. filesystem . link ( arg. oldnodeid , header. nodeid , newname) ) ;
196
196
} ,
197
197
FUSE_OPEN => {
198
198
let arg: & fuse_open_in = data. fetch ( ) ;
199
- debug2 ! ( "OPEN({:u}) ino {:#018x}, flags {:#x}" , header. unique, header. nodeid, arg. flags) ;
199
+ debug ! ( "OPEN({:u}) ino {:#018x}, flags {:#x}" , header. unique, header. nodeid, arg. flags) ;
200
200
self . reply ( ch, se. filesystem . open ( header. nodeid , arg. flags as uint ) ) ;
201
201
} ,
202
202
FUSE_READ => {
203
203
let arg: & fuse_read_in = data. fetch ( ) ;
204
- debug2 ! ( "READ({:u}) ino {:#018x}, fh {:u}, offset {:u}, size {:u}" , header. unique, header. nodeid, arg. fh, arg. offset, arg. size) ;
204
+ debug ! ( "READ({:u}) ino {:#018x}, fh {:u}, offset {:u}, size {:u}" , header. unique, header. nodeid, arg. fh, arg. offset, arg. size) ;
205
205
self . reply ( ch, se. filesystem . read ( header. nodeid , arg. fh , arg. offset as off_t , arg. size as size_t ) ) ;
206
206
} ,
207
207
FUSE_WRITE => {
208
208
let arg: & fuse_write_in = data. fetch ( ) ;
209
209
let data = data. fetch_data ( ) ;
210
210
assert ! ( data. len( ) == arg. size as uint) ;
211
- debug2 ! ( "WRITE({:u}) ino {:#018x}, fh {:u}, offset {:u}, size {:u}, flags {:#x}" , header. unique, header. nodeid, arg. fh, arg. offset, arg. size, arg. write_flags) ;
211
+ debug ! ( "WRITE({:u}) ino {:#018x}, fh {:u}, offset {:u}, size {:u}, flags {:#x}" , header. unique, header. nodeid, arg. fh, arg. offset, arg. size, arg. write_flags) ;
212
212
self . reply ( ch, se. filesystem . write ( header. nodeid , arg. fh , arg. offset as off_t , data, arg. write_flags as uint ) . and_then ( |written| {
213
213
Ok ( ~fuse_write_out { size : written as u32 , padding : 0 } )
214
214
} ) ) ;
215
215
} ,
216
216
FUSE_FLUSH => {
217
217
let arg: & fuse_flush_in = data. fetch ( ) ;
218
- debug2 ! ( "FLUSH({:u}) ino {:#018x}, fh {:u}, lock owner {:u}" , header. unique, header. nodeid, arg. fh, arg. lock_owner) ;
218
+ debug ! ( "FLUSH({:u}) ino {:#018x}, fh {:u}, lock owner {:u}" , header. unique, header. nodeid, arg. fh, arg. lock_owner) ;
219
219
self . reply ( ch, se. filesystem . flush ( header. nodeid , arg. fh , arg. lock_owner ) ) ;
220
220
} ,
221
221
FUSE_RELEASE => {
222
222
let arg: & fuse_release_in = data. fetch ( ) ;
223
223
let flush = match arg. release_flags & FUSE_RELEASE_FLUSH { 0 => false , _ => true } ;
224
- debug2 ! ( "RELEASE({:u}) ino {:#018x}, fh {:u}, flags {:#x}, release flags {:#x}, lock owner {:u}" , header. unique, header. nodeid, arg. fh, arg. flags, arg. release_flags, arg. lock_owner) ;
224
+ debug ! ( "RELEASE({:u}) ino {:#018x}, fh {:u}, flags {:#x}, release flags {:#x}, lock owner {:u}" , header. unique, header. nodeid, arg. fh, arg. flags, arg. release_flags, arg. lock_owner) ;
225
225
self . reply ( ch, se. filesystem . release ( header. nodeid , arg. fh , arg. flags as uint , arg. lock_owner , flush) ) ;
226
226
} ,
227
227
FUSE_FSYNC => {
228
228
let arg: & fuse_fsync_in = data. fetch ( ) ;
229
229
let datasync = match arg. fsync_flags & 1 { 0 => false , _ => true } ;
230
- debug2 ! ( "FSYNC({:u}) ino {:#018x}, fh {:u}, flags {:#x}" , header. unique, header. nodeid, arg. fh, arg. fsync_flags) ;
230
+ debug ! ( "FSYNC({:u}) ino {:#018x}, fh {:u}, flags {:#x}" , header. unique, header. nodeid, arg. fh, arg. fsync_flags) ;
231
231
self . reply ( ch, se. filesystem . fsync ( header. nodeid , arg. fh , datasync) ) ;
232
232
} ,
233
233
FUSE_OPENDIR => {
234
234
let arg: & fuse_open_in = data. fetch ( ) ;
235
- debug2 ! ( "OPENDIR({:u}) ino {:#018x}, flags {:#x}" , header. unique, header. nodeid, arg. flags) ;
235
+ debug ! ( "OPENDIR({:u}) ino {:#018x}, flags {:#x}" , header. unique, header. nodeid, arg. flags) ;
236
236
self . reply ( ch, se. filesystem . opendir ( header. nodeid , arg. flags as uint ) ) ;
237
237
} ,
238
238
FUSE_READDIR => {
239
239
let arg: & fuse_read_in = data. fetch ( ) ;
240
- debug2 ! ( "READDIR({:u}) ino {:#018x}, fh {:u}, offset {:u}, size {:u}" , header. unique, header. nodeid, arg. fh, arg. offset, arg. size) ;
240
+ debug ! ( "READDIR({:u}) ino {:#018x}, fh {:u}, offset {:u}, size {:u}" , header. unique, header. nodeid, arg. fh, arg. offset, arg. size) ;
241
241
self . reply ( ch, se. filesystem . readdir ( header. nodeid , arg. fh , arg. offset as off_t , DirBuffer :: new ( arg. size as uint ) ) ) ;
242
242
} ,
243
243
FUSE_RELEASEDIR => {
244
244
let arg: & fuse_release_in = data. fetch ( ) ;
245
- debug2 ! ( "RELEASEDIR({:u}) ino {:#018x}, fh {:u}, flags {:#x}, release flags {:#x}, lock owner {:u}" , header. unique, header. nodeid, arg. fh, arg. flags, arg. release_flags, arg. lock_owner) ;
245
+ debug ! ( "RELEASEDIR({:u}) ino {:#018x}, fh {:u}, flags {:#x}, release flags {:#x}, lock owner {:u}" , header. unique, header. nodeid, arg. fh, arg. flags, arg. release_flags, arg. lock_owner) ;
246
246
self . reply ( ch, se. filesystem . releasedir ( header. nodeid , arg. fh , arg. flags as uint ) ) ;
247
247
} ,
248
248
FUSE_FSYNCDIR => {
249
249
let arg: & fuse_fsync_in = data. fetch ( ) ;
250
250
let datasync = match arg. fsync_flags & 1 { 0 => false , _ => true } ;
251
- debug2 ! ( "FSYNCDIR({:u}) ino {:#018x}, fh {:u}, flags {:#x}" , header. unique, header. nodeid, arg. fh, arg. fsync_flags) ;
251
+ debug ! ( "FSYNCDIR({:u}) ino {:#018x}, fh {:u}, flags {:#x}" , header. unique, header. nodeid, arg. fh, arg. fsync_flags) ;
252
252
self . reply ( ch, se. filesystem . fsyncdir ( header. nodeid , arg. fh , datasync) ) ;
253
253
} ,
254
254
FUSE_STATFS => {
255
- debug2 ! ( "STATFS({:u}) ino {:#018x}" , header. unique, header. nodeid) ;
255
+ debug ! ( "STATFS({:u}) ino {:#018x}" , header. unique, header. nodeid) ;
256
256
self . reply ( ch, se. filesystem . statfs ( header. nodeid ) ) ;
257
257
} ,
258
258
FUSE_SETXATTR => {
259
259
let arg: & fuse_setxattr_in = data. fetch ( ) ;
260
260
let name = data. fetch_str ( ) ;
261
261
let value = data. fetch_data ( ) ;
262
262
assert ! ( value. len( ) == arg. size as uint) ;
263
- debug2 ! ( "SETXATTR({:u}) ino {:#018x}, name {:s}, size {:u}, flags {:#x}" , header. unique, header. nodeid, logstr( name) , arg. size, arg. flags) ;
263
+ debug ! ( "SETXATTR({:u}) ino {:#018x}, name {:s}, size {:u}, flags {:#x}" , header. unique, header. nodeid, logstr( name) , arg. size, arg. flags) ;
264
264
#[ cfg( target_os = "macos" ) ]
265
265
fn get_position ( arg : & fuse_setxattr_in ) -> off_t { arg. position as off_t }
266
266
#[ cfg( not( target_os = "macos" ) ) ]
@@ -270,7 +270,7 @@ impl Request {
270
270
FUSE_GETXATTR => {
271
271
let arg: & fuse_getxattr_in = data. fetch ( ) ;
272
272
let name = data. fetch_str ( ) ;
273
- debug2 ! ( "GETXATTR({:u}) ino {:#018x}, name {:s}, size {:u}" , header. unique, header. nodeid, logstr( name) , arg. size) ;
273
+ debug ! ( "GETXATTR({:u}) ino {:#018x}, name {:s}, size {:u}" , header. unique, header. nodeid, logstr( name) , arg. size) ;
274
274
match se. filesystem . getxattr ( header. nodeid , name) {
275
275
// If arg.size is zero, the size of the value should be sent with fuse_getxattr_out
276
276
Ok ( ref value) if arg. size == 0 => self . reply ( ch, Ok ( fuse_getxattr_out { size : value. len ( ) as u32 , padding : 0 } ) ) ,
@@ -282,7 +282,7 @@ impl Request {
282
282
} ,
283
283
FUSE_LISTXATTR => {
284
284
let arg: & fuse_getxattr_in = data. fetch ( ) ;
285
- debug2 ! ( "LISTXATTR({:u}) ino {:#018x}, size {:u}" , header. unique, header. nodeid, arg. size) ;
285
+ debug ! ( "LISTXATTR({:u}) ino {:#018x}, size {:u}" , header. unique, header. nodeid, arg. size) ;
286
286
match se. filesystem . listxattr ( header. nodeid ) {
287
287
// TODO: If arg.size is zero, the size of the attribute list should be sent with fuse_getxattr_out
288
288
// TODO: If arg.size is non-zero, send the attribute list if it fits, or ERANGE otherwise
@@ -292,34 +292,34 @@ impl Request {
292
292
} ,
293
293
FUSE_REMOVEXATTR => {
294
294
let name = data. fetch_str ( ) ;
295
- debug2 ! ( "REMOVEXATTR({:u}) ino {:#018x}, name {:s}" , header. unique, header. nodeid, logstr( name) ) ;
295
+ debug ! ( "REMOVEXATTR({:u}) ino {:#018x}, name {:s}" , header. unique, header. nodeid, logstr( name) ) ;
296
296
self . reply ( ch, se. filesystem . removexattr ( header. nodeid , name) ) ;
297
297
} ,
298
298
FUSE_ACCESS => {
299
299
let arg: & fuse_access_in = data. fetch ( ) ;
300
- debug2 ! ( "ACCESS({:u}) ino {:#018x}, mask {:#05o}" , header. unique, header. nodeid, arg. mask) ;
300
+ debug ! ( "ACCESS({:u}) ino {:#018x}, mask {:#05o}" , header. unique, header. nodeid, arg. mask) ;
301
301
self . reply ( ch, se. filesystem . access ( header. nodeid , arg. mask as uint ) ) ;
302
302
} ,
303
303
FUSE_CREATE => {
304
304
let arg: & fuse_open_in = data. fetch ( ) ;
305
305
let name = data. fetch_str ( ) ;
306
- debug2 ! ( "CREATE({:u}) parent {:#018x}, name {:s}, mode {:#05o}, flags {:#x}" , header. unique, header. nodeid, logstr( name) , arg. mode, arg. flags) ;
306
+ debug ! ( "CREATE({:u}) parent {:#018x}, name {:s}, mode {:#05o}, flags {:#x}" , header. unique, header. nodeid, logstr( name) , arg. mode, arg. flags) ;
307
307
self . reply ( ch, se. filesystem . create ( header. nodeid , name, arg. mode as mode_t , arg. flags as uint ) ) ;
308
308
} ,
309
309
FUSE_GETLK => {
310
310
let arg: & fuse_lk_in = data. fetch ( ) ;
311
- debug2 ! ( "GETLK({:u}) ino {:#018x}, fh {:u}, lock owner {:u}" , header. unique, header. nodeid, arg. fh, arg. owner) ;
311
+ debug ! ( "GETLK({:u}) ino {:#018x}, fh {:u}, lock owner {:u}" , header. unique, header. nodeid, arg. fh, arg. owner) ;
312
312
self . reply ( ch, se. filesystem . getlk ( header. nodeid , arg. fh , arg. owner , & arg. lk ) ) ;
313
313
} ,
314
314
FUSE_SETLK | FUSE_SETLKW => {
315
315
let arg: & fuse_lk_in = data. fetch ( ) ;
316
316
let sleep = match opcode { FUSE_SETLKW => true , _ => false } ;
317
- debug2 ! ( "SETLK({:u}) ino {:#018x}, fh {:u}, lock owner {:u}" , header. unique, header. nodeid, arg. fh, arg. owner) ;
317
+ debug ! ( "SETLK({:u}) ino {:#018x}, fh {:u}, lock owner {:u}" , header. unique, header. nodeid, arg. fh, arg. owner) ;
318
318
self . reply ( ch, se. filesystem . setlk ( header. nodeid , arg. fh , arg. owner , & arg. lk , sleep) ) ;
319
319
} ,
320
320
FUSE_BMAP => {
321
321
let arg: & fuse_bmap_in = data. fetch ( ) ;
322
- debug2 ! ( "BMAP({:u}) ino {:#018x}, blocksize {:u}, ids {:u}" , header. unique, header. nodeid, arg. blocksize, arg. block) ;
322
+ debug ! ( "BMAP({:u}) ino {:#018x}, blocksize {:u}, ids {:u}" , header. unique, header. nodeid, arg. blocksize, arg. block) ;
323
323
self . reply ( ch, se. filesystem . bmap ( header. nodeid , arg. blocksize as size_t , arg. block ) ) ;
324
324
} ,
325
325
// OS X only
@@ -333,18 +333,18 @@ impl Request {
333
333
match opcode {
334
334
FUSE_SETVOLNAME => {
335
335
let name = data. fetch_str ( ) ;
336
- debug2 ! ( "SETVOLNAME({:u}) name {:s}" , header. unique, logstr( name) ) ;
336
+ debug ! ( "SETVOLNAME({:u}) name {:s}" , header. unique, logstr( name) ) ;
337
337
self . reply ( ch, se. filesystem . setvolname ( name) ) ;
338
338
} ,
339
339
FUSE_EXCHANGE => {
340
340
let arg: & fuse_exchange_in = data. fetch ( ) ;
341
341
let oldname = data. fetch_str ( ) ;
342
342
let newname = data. fetch_str ( ) ;
343
- debug2 ! ( "EXCHANGE({:u}) parent {:#018x}, name {:s}, newparent {:#018x}, newname {:s}, options {:#x}" , header. unique, arg. olddir, logstr( oldname) , arg. newdir, logstr( newname) , arg. options) ;
343
+ debug ! ( "EXCHANGE({:u}) parent {:#018x}, name {:s}, newparent {:#018x}, newname {:s}, options {:#x}" , header. unique, arg. olddir, logstr( oldname) , arg. newdir, logstr( newname) , arg. options) ;
344
344
self . reply ( ch, se. filesystem . exchange ( arg. olddir , oldname, arg. newdir , newname, arg. options as uint ) ) ;
345
345
} ,
346
346
FUSE_GETXTIMES => {
347
- debug2 ! ( "GETXTIMES({:u}) ino {:#018x}" , header. unique, header. nodeid) ;
347
+ debug ! ( "GETXTIMES({:u}) ino {:#018x}" , header. unique, header. nodeid) ;
348
348
self . reply ( ch, se. filesystem . getxtimes ( header. nodeid ) ) ;
349
349
} ,
350
350
_ => unreachable ! ( ) ,
@@ -354,7 +354,7 @@ impl Request {
354
354
/// Warn about unsupported OS X operation on other os
355
355
#[ cfg( not( target_os = "macos" ) ) ]
356
356
fn dispatch_macos_only < FS : Filesystem > ( & self , opcode : fuse_opcode , _se : & mut Session < FS > , _header : & fuse_in_header , _ch : Channel , _data : & mut ArgumentIterator ) {
357
- warn2 ! ( "Ignoring unsupported FUSE operation {:u}" , opcode)
357
+ warn ! ( "Ignoring unsupported FUSE operation {:u}" , opcode)
358
358
self . reply_error ( ch, ENOSYS ) ;
359
359
}
360
360
0 commit comments