[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #23443] find regression: now fooled when crossing mountpoints
From: |
Jim Meyering |
Subject: |
[bug #23443] find regression: now fooled when crossing mountpoints |
Date: |
Fri, 05 Sep 2008 14:25:53 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.0.1) Gecko/2008071420 Iceweasel/3.0.1 (Debian-3.0.1-1) |
Follow-up Comment #10, bug #23443 (project findutils):
Hi James.
Actually, yes.
Whereas the gnulib-fts cycle checks only device and inode numbers (because
that's all it needs to do on POSIX-conforming file system), some tools resort
to comparing additional members of struct stat. For example diff has an
option you can enable (configure-time?) to make it perform extra checks of
several other members. Note how the comparison in comment #5 shows size, link
count and block count fields differ, even though dev/inode match.
Unfortunately, testing those fields would mean storing them, and currently we
don't store an entire 144-byte stat field, but rather just dev+inode for the
cycle check. We'll have to weigh the cost/benefit of encumbering the code
(that will impact all users) to accommodate a non-POSIX file system.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?23443>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/