Add a compound statfs function to the smb2 fuse module

ronnie sahlberg ronniesahlberg at gmail.com
Mon May 22 02:52:02 UTC 2017


List,

Please find a bunch of small patches for the fuse filesystem to
1, prepare some of the functions (create/query/close) to be more
compound friendly and also implementing a nice statfs function..

With statfs implemented, tools like df and mount will show any mounted
filesystems
as type "fuse.smb" and with a "device" name that is a friendly smb url :

Example :
$ mount
...
smb://10.10.10.118/Share on /home/sahlberg/mnt type fuse.smb
(rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)

$ df
...
smb://10.10.10.118/Share  961987580  112979620  849007960  12%
/home/sahlberg/mnt

I have been away from samba coding for a while. Be gentle when reviewing.

ronnie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Declare-fuse_args-in-smb2mount.c-and-pass-it-to-clif.patch
Type: text/x-patch
Size: 3145 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170521/4546872e/0001-Declare-fuse_args-in-smb2mount.c-and-pass-it-to-clif.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Pass-both-fsname-and-subtype-args-to-fuse.patch
Type: text/x-patch
Size: 1376 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170521/4546872e/0002-Pass-both-fsname-and-subtype-args-to-fuse.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Move-smb2cli_req_compound_submit-out-of-smb2cli_req_.patch
Type: text/x-patch
Size: 13769 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170521/4546872e/0003-Move-smb2cli_req_compound_submit-out-of-smb2cli_req_.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Change-smb2cli_create_send-to-return-the-underlying-.patch
Type: text/x-patch
Size: 3930 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170521/4546872e/0004-Change-smb2cli_create_send-to-return-the-underlying-.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0005-Make-smb2cli_close_send-compound-friendly.patch
Type: text/x-patch
Size: 3857 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170521/4546872e/0005-Make-smb2cli_close_send-compound-friendly.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-Change-smb2cli_query_info_send-to-be-compound-friend.patch
Type: text/x-patch
Size: 2429 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170521/4546872e/0006-Change-smb2cli_query_info_send-to-be-compound-friend.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0007-Update-the-CHAINED-flag-in-smb2cli_req_compound_subm.patch
Type: text/x-patch
Size: 968 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170521/4546872e/0007-Update-the-CHAINED-flag-in-smb2cli_req_compound_subm.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0008-Add-statfs-support-to-the-fuse-module.patch
Type: text/x-patch
Size: 7825 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20170521/4546872e/0008-Add-statfs-support-to-the-fuse-module.bin>


More information about the samba-technical mailing list