[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #14921] find -fstype broken when bind-mounts are used
From: |
Andreas Metzler |
Subject: |
[bug #14921] find -fstype broken when bind-mounts are used |
Date: |
Sun, 18 Dec 2005 10:32:28 +0100 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050927 Debian/1.7.8-1sarge3 |
Follow-up Comment #6, bug #14921 (project findutils):
Hello,
Sorry for being so late in response. This is not fixed, just broken in a
different way.
Jay wrote:
> OK, diagnosed and fixed.
> find was taking the LAST matching entry from /etc/mtab rather
> than the FIRST (this was also a memory leak).
[...]
> I've now fixed this in 4.2.x (and will soon propagate the fix
> to 4.3.x). We take the first match.
I bindmount /tmp to /sid/tmp; i.e. the contents of /tmp/ are afterwards also
visible in /sid/tmp
With 4.2.26 this results in /tmp/a (and any other file on the same filesystem
as /tmp/) and /sid/tmp/a to be both considered type "none".
OTOH with 4.2.27 this results in /tmp/a (and any other file on the same
filesystem as /tmp/) and /sid/tmp/a to be both considered type "ext3".
What I'd actually like to accomplish is:
/tmp/a type ext3
/sid/tmp/a type none
I do not know whether this doable, stat does not offer the necessary
information, e.g. df(1) from coreutils uses a loop:
/* Figure out which device file or directory POINT is mounted on
and show its disk usage.
STATP must be the result of `stat (POINT, STATP)'. */
static void
show_point (const char *point, const struct stat *statp)
cu andreas
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14921>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/