Hi Stan,

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

Stan Marsh <gaze...@xmission.com> 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



Reply via email to