bug#79096: du: -x doesn't detect sshfs file system

Collin Funk <[email protected]>
Newsgroups gmane.comp.gnu.core-utils.bugs
Message-ID <[email protected]>
Hi Stan,

Haven't gotten a chance to read through the original report yet, but...

Stan Marsh <[email protected]> writes:

> By the way, and just out of curiosity, what method does "du" use to figure out if
> something is a mountpoint (and thus to be skipped if -x was supplied on the cmd line) ?

We have a function in Gnulib to get a list of mount points. In the
gnulib repository see mountlist.{h,c} [1] [2]. That is what 'du' uses.

Collin

[1] https://gitweb.git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/mountlist.h;h=dcff6f831939a3b991abf63e3b4797ff72640a50;hb=HEAD
[2] https://gitweb.git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/mountlist.c;h=dcff6f831939a3b991abf63e3b4797ff72640a50;hb=HEAD
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.