gboudreau / Greyhole

Greyhole uses Samba to create a storage pool of all your available hard drives, and allows you to create redundant copies of the files you store.
http://www.greyhole.net
GNU General Public License v3.0
263 stars 34 forks source link

Initial testing of 4.16.2 vfs module #300

Closed zefie closed 2 years ago

zefie commented 2 years ago

Using Debian bookworm, which is currently Samba 4.16.2, I had to make the modifications below for it to work.

fsp->fh->fd was throwing compiler errors, fsp_get_io_fd(fsp) seems to be a suitable workaround.

For some reason, in the renameat, linkat, and unlinkat functions, oldname->base_name and newname->base_name were literally base names, and did not include paths within the share. My workaround fixes that as well.

Still in testing, but so far it seems stable.

Posting here for your thoughts.

gboudreau commented 2 years ago

Thanks for your help on this. I'll compile and package the VFS module for 4.16 from this.