4

While reading through the man page of zfs I noticed the sharesmb and sharenfs options. Are they thin wrappers over samba/smb/cifs/nfs provided by the underlying Linux system, or special/optimised code baked right into ZFS? Is there anything peculiar about ZFS (at a low-level) due to which one should use the in-built sharesmb/sharenfs options instead of standard Linux tools?

Saurabh Nanda
  • 489
  • 1
  • 8
  • 20
  • 2
    The man page says exactly how both of those options work. But the page you linked to is not the current ZFS on Linux man page. In fact, it's not even from Linux at all. Try reading the live man page instead. – Michael Hampton Jan 30 '19 at 18:43
  • 3
    smb https://github.com/zfsonlinux/zfs/blob/master/lib/libshare/smb.c#L239 nfs https://github.com/zfsonlinux/zfs/blob/master/lib/libshare/nfs.c#L240 – Zoredache Jan 30 '19 at 18:54
  • Thanks @MichaelHampton -- I didn't realise I was reading wrong man page all this time! – Saurabh Nanda Jan 30 '19 at 18:56
  • 1
    Thanks @Zoredache. So, it's just a thin wrapper. I guess it's better to set-up file-sharing outside of ZFS so that one knows exactly what configuration has been used. – Saurabh Nanda Jan 30 '19 at 18:57
  • 1
    The OpenZFS leadership mtg just discussed this very topic: https://youtu.be/Li8Z08KZvg8?t=189 – Will Dennis Feb 02 '19 at 23:03

0 Answers0