From a19ff5d8179a7de38109fc78278229fd96f3941a Mon Sep 17 00:00:00 2001 From: Josef Cejka Date: Tue, 1 Aug 2017 01:50:34 +0200 Subject: df: avoid stat() for dummy file systems with -l When systemd is configured to automount a remote file system - see 'man systemd.automount(5)', then the mount point is initially mounted by systemd with the file system type "autofs". When the resource is used later on, then the wanted file system is mounted over that mount point on demand. 'df -l' triggered systemd to mount the file system because it called stat() on the mount point. Instead of single-casing "autofs" targets, we can avoid stat()ing all dummy file systems (which includes "autofs"), because those are skipped later on in get_dev() anyway. *src/df.c (filter_mount_list): Also skip dummy file systems unless the -a option or a specific target are given. * NEWS: Mention the fix. Co-authored-by: Bernhard Voelker Fixes http://bugzilla.suse.com/show_bug.cgi?id=1043059 --- THANKS.in | 1 - 1 file changed, 1 deletion(-) (limited to 'THANKS.in') diff --git a/THANKS.in b/THANKS.in index 7ce672bea..969bda079 100644 --- a/THANKS.in +++ b/THANKS.in @@ -321,7 +321,6 @@ Jon Peatfield J.S.Peatfield@damtp.cam.ac.uk Joost van Baal joostvb@xs4all.nl Jordi Pujol jordipujolp@gmail.com Jorge Stolfi stolfi@ic.unicamp.br -Josef Cejka jcejka@suse.com Joseph D. Wagner joe@josephdwagner.info Joseph S. Myers jsm28@cam.ac.uk Josh Triplett josh@freedesktop.org -- cgit v1.2.1