[glib/wip/oholy/remote-attribute-fixes: 22/27] glocalfile: Handle smb2 filesystem type
- From: Ondrej Holy <oholy src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/oholy/remote-attribute-fixes: 22/27] glocalfile: Handle smb2 filesystem type
- Date: Thu, 18 Jun 2020 11:13:22 +0000 (UTC)
commit 387709338c9f9d6eb49ce9052f1937da886c6218
Author: Ondrej Holy <oholy redhat com>
Date: Wed Apr 24 09:44:36 2019 +0200
glocalfile: Handle smb2 filesystem type
`G_FILE_ATTRIBUTE_FILESYSTEM_TYPE` is not set for CIFS mounts with
`vers=2.0` option, or newer. Add `smb2` to the list of known filesystems.
It is also reported by `stat -f`:
https://github.com/coreutils/coreutils/blob/master/src/stat.c
gio/glocalfile.c | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/gio/glocalfile.c b/gio/glocalfile.c
index 72ef947d4..9caa35b1c 100644
--- a/gio/glocalfile.c
+++ b/gio/glocalfile.c
@@ -690,6 +690,8 @@ get_fs_type (long f_type)
return "smackfs";
case 0x517B:
return "smb";
+ case 0xfe534d42:
+ return "smb2";
case 0x534F434B:
return "sockfs";
case 0x73717368:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]