bug-coreutils
[Top][All Lists]
Advanced

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

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


From: Collin Funk
Subject: bug#79096: du: -x doesn't detect sshfs file system
Date: Fri, 25 Jul 2025 11:19:00 -0700
User-agent: Gnus/5.13 (Gnus v5.13)

Hi Stan,

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

Stan Marsh <gazelle@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

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