2011/3/4 Ryusuke Konishi <[email protected]>:
> 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to