diff options
author | Ondrej Holy <oholy@redhat.com> | 2019-04-24 09:44:36 +0200 |
---|---|---|
committer | Ondrej Holy <oholy@redhat.com> | 2019-04-24 10:42:38 +0200 |
commit | 932c6057b72d8111404c0ac42e72fe057cb2ecf1 (patch) | |
tree | 361a83d4d52e58c5996b65604746d847e067e576 | |
parent | 640488e7e19a546a6b9663575e00bf12724d454d (diff) | |
download | glib-wip/oholy/cifs-splice.tar.gz |
glocalfile: Handle smb2 filesystem typewip/oholy/cifs-splice
`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
-rw-r--r-- | gio/glocalfile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gio/glocalfile.c b/gio/glocalfile.c index 62f30b561..b5d092d7c 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: |