@@ -261,8 +261,8 @@ def _replace(self, inode_p_old, name_old, inode_p_new, name_new,
261
261
def link (self , inode , new_inode_p , new_name , ctx ):
262
262
entry_p = self .getattr (new_inode_p )
263
263
if entry_p .st_nlink == 0 :
264
- log .warn ('Attempted to create entry %s with unlinked parent %d' ,
265
- new_name , new_inode_p )
264
+ log .warning ('Attempted to create entry %s with unlinked parent %d' ,
265
+ new_name , new_inode_p )
266
266
raise FUSEError (errno .EINVAL )
267
267
268
268
self .cursor .execute ("INSERT INTO contents (name, inode, parent_inode) VALUES(?,?,?)" ,
@@ -349,8 +349,8 @@ def create(self, inode_parent, name, mode, flags, ctx):
349
349
350
350
def _create (self , inode_p , name , mode , ctx , rdev = 0 , target = None ):
351
351
if self .getattr (inode_p ).st_nlink == 0 :
352
- log .warn ('Attempted to create entry %s with unlinked parent %d' ,
353
- name , inode_p )
352
+ log .warning ('Attempted to create entry %s with unlinked parent %d' ,
353
+ name , inode_p )
354
354
raise FUSEError (errno .EINVAL )
355
355
356
356
now_ns = int (time () * 1e9 )
0 commit comments