8b2a2a7a3e
- Update default posix version to 200112 (bnc#783352). Hide rootfs in df (df not using yet /proc/self/mountinfo). OBS-URL: https://build.opensuse.org/request/show/143405 OBS-URL: https://build.opensuse.org/package/show/Base:System/coreutils?expand=0&rev=167
15 lines
568 B
Diff
15 lines
568 B
Diff
Index: coreutils-8.17/src/df.c
|
|
===================================================================
|
|
--- coreutils-8.17.orig/src/df.c
|
|
+++ coreutils-8.17/src/df.c
|
|
@@ -474,6 +474,9 @@ get_dev (char const *disk, char const *m
|
|
if (!selected_fstype (fstype) || excluded_fstype (fstype))
|
|
return;
|
|
|
|
+ if (STRNCMP_LIT (fstype, "rootfs") == 0)
|
|
+ return;
|
|
+
|
|
/* If MOUNT_POINT is NULL, then the file system is not mounted, and this
|
|
program reports on the file system that the special file is on.
|
|
It would be better to report on the unmounted file system,
|