Blame SOURCES/coreutils-8.30-df-local-fs.patch

d3767b
From b60a61d7e5f6504518095d9ee8c7c8b185bedb23 Mon Sep 17 00:00:00 2001
d3767b
From: Marc Dionne <marc.dionne@auristor.com>
d3767b
Date: Wed, 5 Feb 2020 13:35:12 -0800
d3767b
Subject: [PATCH 1/2] mountlist: Consider AFS filesystems as remote
d3767b
d3767b
df --local relies on the ME_REMOTE macro to determine if a given
d3767b
mount entry should be considered "local".  There is special logic
d3767b
for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
d3767b
kernel's kafs module or AuriStorFS is treated as a local mount.
d3767b
* lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
d3767b
(OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
d3767b
d3767b
Copyright-paperwork-exempt: yes
d3767b
d3767b
Upstream-commit: 7a15069b68a376f26c5dca34ae2689c5bf8adc99
d3767b
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
d3767b
---
d3767b
 lib/mountlist.c | 3 +++
d3767b
 1 file changed, 3 insertions(+)
d3767b
d3767b
diff --git a/lib/mountlist.c b/lib/mountlist.c
d3767b
index b691f38..1b1e5e4 100644
d3767b
--- a/lib/mountlist.c
d3767b
+++ b/lib/mountlist.c
d3767b
@@ -224,6 +224,7 @@ me_remote (char const *fs_name, char const *fs_type _GL_UNUSED)
d3767b
 #ifndef ME_REMOTE
d3767b
 /* A file system is "remote" if its Fs_name contains a ':'
d3767b
    or if (it is of type (smbfs or cifs) and its Fs_name starts with '//')
d3767b
+   or if it is of type (afs or auristorfs)
d3767b
    or Fs_name is equal to "-hosts" (used by autofs to mount remote fs).  */
d3767b
 # define ME_REMOTE(Fs_name, Fs_type)            \
d3767b
     (strchr (Fs_name, ':') != NULL              \
d3767b
@@ -231,6 +232,8 @@ me_remote (char const *fs_name, char const *fs_type _GL_UNUSED)
d3767b
          && (Fs_name)[1] == '/'                 \
d3767b
          && (strcmp (Fs_type, "smbfs") == 0     \
d3767b
              || strcmp (Fs_type, "cifs") == 0)) \
d3767b
+     || strcmp (Fs_type, "afs") == 0            \
d3767b
+     || strcmp (Fs_type, "auristorfs") == 0     \
d3767b
      || (strcmp("-hosts", Fs_name) == 0))
d3767b
 #endif
d3767b
 
d3767b
-- 
d3767b
2.21.1
d3767b
d3767b
d3767b
From 41010dfb0cc100f41fb16d93f9fa36dc07e63ac6 Mon Sep 17 00:00:00 2001
d3767b
From: Kenneth D'souza <kdsouza@redhat.com>
d3767b
Date: Sat, 8 Feb 2020 13:54:35 +0000
d3767b
Subject: [PATCH 2/2] mountlist: consider smb3 file systems as remote
d3767b
d3767b
* lib/mountlist.c (ME_REMOTE): Recognize file systems of type
d3767b
"smb3" as remote.
d3767b
d3767b
Upstream-commit: 4d4a22ab1f719b7c6c3fe3dbf45d11baafd3c563
d3767b
Signed-off-by: Kamil Dudka <kdudka@redhat.com>
d3767b
---
d3767b
 lib/mountlist.c | 1 +
d3767b
 1 file changed, 1 insertion(+)
d3767b
d3767b
diff --git a/lib/mountlist.c b/lib/mountlist.c
d3767b
index 1b1e5e4..8ad74a2 100644
d3767b
--- a/lib/mountlist.c
d3767b
+++ b/lib/mountlist.c
d3767b
@@ -231,6 +231,7 @@ me_remote (char const *fs_name, char const *fs_type _GL_UNUSED)
d3767b
      || ((Fs_name)[0] == '/'                    \
d3767b
          && (Fs_name)[1] == '/'                 \
d3767b
          && (strcmp (Fs_type, "smbfs") == 0     \
d3767b
+             || strcmp (Fs_type, "smb3") == 0   \
d3767b
              || strcmp (Fs_type, "cifs") == 0)) \
d3767b
      || strcmp (Fs_type, "afs") == 0            \
d3767b
      || strcmp (Fs_type, "auristorfs") == 0     \
d3767b
-- 
d3767b
2.21.1
d3767b