Re: [PATCH 1/8] lscp: support opening mounted filesystem by directory pathname

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

 



2011/3/4 Ryusuke Konishi <ryusuke@xxxxxxxx>:
> In the new directory semantics, we needs to decide if a given
> directory argument belongs to a mount point in the mtab entries.
>
> This matching check needs to know whether the given directory crosses
> over a filesystem boundary starting from each mount point.  And, this
> needs testing if each intermediate directory is a mount point or not.
>
> "mountpoint" command judges this by comparing device ids and inode
> numbers for each directory with its parent.

BTW, we can test if a given nilfs2 directory is a mount point or not
with its inode number.  The nilfs2 mount point always has
inode number 2 (=NILFS_ROOT_INO) and no other directories
have this inode number.

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


[Index of Archives]     [Linux Filesystem Development]     [Linux BTRFS]     [Linux CIFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux