Page 1 of 1

ls on snapshot subdirectory gives "Operation not supported"

PostPosted: Tue Jul 25, 2017 12:23 am
by tangent
It seems that OOO does not allow one to pull individual files out of a snapshot:

Simple test case:

Code: Select all
$ cd /Volumes/POOLNAME/.zfs/snapshot
$ ls
2017-06-30/ 2017-07-25/
$ cd 2017-06-30
$ ls
ls: .: Operation not supported

It also won't let me cd into a directory that I know is at the top of that snapshot.

This makes me wonder if it's safe to roll back to the snapshot, if OOO itself cannot navigate the snapshot tree.

Re: ls on snapshot subdirectory gives "Operation not support

PostPosted: Tue Jul 25, 2017 9:36 pm
by lundman
We do not do automatic-mounting of snapshots, due to limitations in the kernel. Did you issue "zfs mount POOLNAME/2017-06-30" before hand?

Re: ls on snapshot subdirectory gives "Operation not support

PostPosted: Wed Jul 26, 2017 10:56 am
by tangent
That solved it, except of course that you need to specify it as POOLNAME@SNAPNAME.

Maybe this thread is enough, but this needs to be documented somewhere, as all the tutorials online that mention this feature of ZFS just assume you can cd into that directory.

Re: ls on snapshot subdirectory gives "Operation not support

PostPosted: Wed Jul 26, 2017 11:53 am
by abc123