Re: [PATCH -V16 07/12] vfs: Support null pathname in linkat

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 12 Jul 2010, Aneesh Kumar K. V wrote:
> /*
>  * Return -ENOENT if we've raced with unlink and i_nlink is 0.  Doing
>  * otherwise has the potential to corrupt the orphan inode list.
>  */
> if (inode->i_nlink == 0)
> 	return -ENOENT;
> 
> I can move this check to VFS so that we do it for all file systems. 

That makes sense.  Hopefully filesystems which implement hard links
will change i_nlink to zero for the last unlink...

Thanks,
Miklos
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux