[cifs-discuss] cifs shares appear empty?

Benjamin Staffin benley at zoiks.net
Sun Jun 22 20:19:44 PDT 2008


... I suppose it might be useful to mention that I'm running SXCE b89
at this time.  All the zpools and zfs filesystems are up to date
according to 'zfs upgrade' and 'zpool upgrade'.

- Ben

On Sun, Jun 22, 2008 at 6:43 PM, Benjamin Staffin <benley at zoiks.net> wrote:
> I'm having a strange problem where some of my zfs cifs shares are
> getting exported with no files visible in them.  Others work fine.
> Every one of the shares works fine via NFS.  I don't _think_ it's a
> permissions problem as I've had before - this seems to be something
> else.
>
> Here's a share that's showing up with zero files:
>
> $ /usr/bin/ls -ldV /scratch
> drwxrwxrwt  11 root     root          30 Jun 22 18:14 /scratch
>            owner@:--------------:-------:deny
>            owner@:rwxp---A-W-Co-:-------:allow
>            group@:--------------:-------:deny
>            group@:rwxp----------:-------:allow
>         everyone@:-------A-W-Co-:-------:deny
>         everyone@:rwxp--a-R-c--s:-------:allow
>
> $ zfs get sharesmb tank/scratch
> NAME          PROPERTY  VALUE         SOURCE
> tank/scratch  sharesmb  name=scratch  local
>
> $ sharemgr show -vp|grep scratch
>    zfs/tank/scratch nfs=() smb=() nfs:sys=(root="<blahblahblah>"
> rw="<blahblahblah>" ro="*")
>          scratch=/scratch
>
> And here are the same commands run against a share that seems to be fine:
> (the permissions aren't identical, but these are _more_ restrictive, not less)
>
> $ /usr/bin/ls -ldV /export/music
> drwxr-xr-x  26 benley   staff        778 Oct 31  2006 /export/music
>            owner@:--------------:-------:deny
>            owner@:rwxp---A-W-Co-:-------:allow
>            group@:-w-p----------:-------:deny
>            group@:r-x-----------:-------:allow
>         everyone@:-w-p---A-W-Co-:-------:deny
>         everyone@:r-x---a-R-c--s:-------:allow
>
> $ zfs get sharesmb tank/music
> NAME        PROPERTY  VALUE       SOURCE
> tank/music  sharesmb  name=music  local
>
> $ sharemgr show -vp|grep music
>    zfs/tank/music nfs=() smb=() nfs:sys=(root="<blahblahblah>"
> rw="<blahblahblah>" ro="*")
>          music=/export/music
>
> One imaginable complication here is that I changed my uid at some
> point in the past, which caused problems as I tracked down various
> places where the uid was cached, including /var/smb/smbpasswd.  I
> don't *think* this is causing the current problem, as the shares have
> correct ownerships and a different user is seeing the same problem
> with the same shares.
>
> What am I doing wrong here?  The last time this came up it turned out
> to be a dumb permissions issue.  I hope I'm not just blind to some
> missing acl bit in the ls output above.
>
> Thanks in advance,
>
> - Ben
>


More information about the cifs-discuss mailing list