[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #42318] find with xdev traverses other filesystem when mountpiont i
From: |
Daniele Palumbo |
Subject: |
[bug #42318] find with xdev traverses other filesystem when mountpiont is subdirectory |
Date: |
Wed, 29 Mar 2017 11:13:56 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Firefox/45.0 |
Follow-up Comment #9, bug #42318 (project findutils):
>From POSIX section mentioned
"it shall cause find not to continue descending past directories that have a
different device ID (st_dev"
Key is the reference to primary.
Primary will have one st_dev, the mount point will have another one.
The directory on which a file system is mounted has indeed a different device
ID.
Example:
testserver ~ # stat /mnt/|grep Device
Device: fd01h/64769d Inode: 8196 Links: 3
testserver ~ # stat /mnt/testmount/|grep Device
Device: fd07h/64775d Inode: 2 Links: 2
testserver ~ #
So, i would read this as "if the directory has a different Device, do not list
it".
That of course is different from the current behavior.
BTW, http://austingroupbugs.net/view.php?id=1133 has been opened to clarify
POSIX understanding.
There is also a very interesting comment on the behavior that has to be kept
regarding -H and -L (symbolic link related) behavior.
"I can see making it a requirement mount names show when
neither -H or -L specified, whether -xdev set or not, and hidden when either
option and -xdev is specified, treating the direct name as a symbolic link
body, essentially. This may be a breaking change, but covers both observed
behaviors. "
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?42318>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #42318] find with xdev traverses other filesystem when mountpiont is subdirectory, Daniele Palumbo, 2017/03/17
- [bug #42318] find with xdev traverses other filesystem when mountpiont is subdirectory, Bernhard Voelker, 2017/03/17
- [bug #42318] find with xdev traverses other filesystem when mountpiont is subdirectory, Dale Worley, 2017/03/20
- [bug #42318] find with xdev traverses other filesystem when mountpiont is subdirectory, Daniele Palumbo, 2017/03/21
- [bug #42318] find with xdev traverses other filesystem when mountpiont is subdirectory, Dale Worley, 2017/03/22
- [bug #42318] find with xdev traverses other filesystem when mountpiont is subdirectory, Daniele Palumbo, 2017/03/23
- [bug #42318] find with xdev traverses other filesystem when mountpiont is subdirectory, Daniele Palumbo, 2017/03/23
- [bug #42318] find with xdev traverses other filesystem when mountpiont is subdirectory, Dale Worley, 2017/03/24
- [bug #42318] find with xdev traverses other filesystem when mountpiont is subdirectory,
Daniele Palumbo <=
- [bug #42318] find with xdev traverses other filesystem when mountpiont is subdirectory, Dale Worley, 2017/03/29
- [bug #42318] find with xdev traverses other filesystem when mountpiont is subdirectory, James Youngman, 2017/03/30
- [bug #42318] find with xdev traverses other filesystem when mountpiont is subdirectory, James Youngman, 2017/03/30