]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
libmount: smb2 is unsupported alias
authorKarel Zak <kzak@redhat.com>
Wed, 11 Mar 2020 17:38:09 +0000 (18:38 +0100)
committerKarel Zak <kzak@redhat.com>
Wed, 11 Mar 2020 17:38:09 +0000 (18:38 +0100)
Kenneth D'souza wrote:
 # grep -w MODULE_ALIAS_FS fs/cifs/cifsfs.c
 MODULE_ALIAS_FS("cifs");
 112/112│MODULE_ALIAS_FS("smb3");

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1812118
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/tab.c
libmount/src/utils.c

index aeeefcde68ff169e5daa46c911803d8e771c0860..1633d423105c38e169e7d0295ff54a373c94a19d 100644 (file)
@@ -1764,7 +1764,6 @@ int __mnt_table_is_fs_mounted(struct libmnt_table *tb, struct libmnt_fs *fstab_f
                        const char *fstype = mnt_fs_get_fstype(fs);
 
                        if (fstype && (strcmp(fstype, "cifs") == 0
-                                      || strcmp(fstype, "smb2") == 0
                                       || strcmp(fstype, "smb3") == 0)) {
 
                                const char *unc_subdir = get_cifs_unc_subdir_path(src);
index 90c84f400940eca2a582aa1ef65e4ff9ac414399..ffbd0c1705dd65d4f13af8e04b83d02e629d62ba 100644 (file)
@@ -332,7 +332,6 @@ int mnt_fstype_is_pseudofs(const char *type)
 int mnt_fstype_is_netfs(const char *type)
 {
        if (strcmp(type, "cifs")   == 0 ||
-           strcmp(type, "smb2")   == 0 ||
            strcmp(type, "smb3")   == 0 ||
            strcmp(type, "smbfs")  == 0 ||
            strncmp(type,"nfs", 3) == 0 ||