Re: [Question] Unlinking original file of bind mounted file.

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

 



On Sat, Dec 31, 2022 at 07:58:09AM +0900, Yun Levi wrote:
> /**
>  * NOT directory bind, file bind.
>  */
> 1. mount --bind {original file} {bind file}
> 
>   // original's inode->i_count = 1, inode->i_nlink =0, and ext4_inode
> becomes orphaned,
>   // inode->i_no which managed by ext4 is freed and become reusable.
> 2. rm -f {original file}

ext4 doesn't free the inode number while the inode is still on the orphan list.
So your claim "inode->i_no which managed by ext4 is freed and become reusable"
is wrong.  

- Eric



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

  Powered by Linux