emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#19238: closed (Fully fix du circular warning on bi


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#19238: closed (Fully fix du circular warning on bind mounts)
Date: Mon, 01 Dec 2014 12:51:02 +0000

Your message dated Mon, 01 Dec 2014 12:49:59 +0000
with message-id <address@hidden>
and subject line Re: bug#19238: Fully fix du circular warning on bind mounts
has caused the debbugs.gnu.org bug report #19238,
regarding Fully fix du circular warning on bind mounts
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
19238: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=19238
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: Fully fix du circular warning on bind mounts Date: Mon, 01 Dec 2014 09:54:38 +0100
The du circular warning can still be hit even though a file system is in
good condition. All we need to do is to get the message is to begin
traversing the file system between the bind mount source and bind mount
target directories, i.e this short script reproduces the problem:

# mkdir -p a/b/c
# mount -o bind a a/b/c
# du a/b

The problem is that in this case, the first directory that is detected
by fts as a duplicate directory is directory a/b/c/b which is not a
mount point.

The solution is to traverse the structure all the way to a/b (excluding
a/b) which is detected as the base of the cycle and look up all these
directories in the mount table.

I'm attaching the patch that fixed this problem for me.

-Boris

Attachment: 0001-du-handle-sub-bind-mount-cycles-gracefully.patch
Description: Text Data


--- End Message ---
--- Begin Message --- Subject: Re: bug#19238: Fully fix du circular warning on bind mounts Date: Mon, 01 Dec 2014 12:49:59 +0000 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0
On 01/12/14 08:54, Boris Ranto wrote:
> The du circular warning can still be hit even though a file system is in
> good condition. All we need to do is to get the message is to begin
> traversing the file system between the bind mount source and bind mount
> target directories, i.e this short script reproduces the problem:
> 
> # mkdir -p a/b/c
> # mount -o bind a a/b/c
> # du a/b
> 
> The problem is that in this case, the first directory that is detected
> by fts as a duplicate directory is directory a/b/c/b which is not a
> mount point.
> 
> The solution is to traverse the structure all the way to a/b (excluding
> a/b) which is detected as the base of the cycle and look up all these
> directories in the mount table.
> 
> I'm attaching the patch that fixed this problem for me.

Very nice. Thanks for the test!
I'll add a NEWS entry and push later.

thanks!
Pádraig



--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]