@@ -261,8 +261,8 @@ def _replace(self, inode_p_old, name_old, inode_p_new, name_new,
261261 def link (self , inode , new_inode_p , new_name , ctx ):
262262 entry_p = self .getattr (new_inode_p )
263263 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 )
266266 raise FUSEError (errno .EINVAL )
267267
268268 self .cursor .execute ("INSERT INTO contents (name, inode, parent_inode) VALUES(?,?,?)" ,
@@ -349,8 +349,8 @@ def create(self, inode_parent, name, mode, flags, ctx):
349349
350350 def _create (self , inode_p , name , mode , ctx , rdev = 0 , target = None ):
351351 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 )
354354 raise FUSEError (errno .EINVAL )
355355
356356 now_ns = int (time () * 1e9 )
0 commit comments