Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot reference bookmarks in zfs get, etc #3995

Closed
DeHackEd opened this issue Nov 6, 2015 · 5 comments
Closed

Cannot reference bookmarks in zfs get, etc #3995

DeHackEd opened this issue Nov 6, 2015 · 5 comments

Comments

@DeHackEd
Copy link
Contributor

DeHackEd commented Nov 6, 2015

# zfs bookmark pool/dataset@replicace3 pool/dataset#replicate3

# zfs list -t bookmark
NAME                      USED  AVAIL  REFER  MOUNTPOINT
pool/dataset#replicate3      -      -      -  -

# zfs get all pool/dataset#replicate3
cannot open 'pool/dataset#replicate3': invalid dataset name

# zfs list -t bookmark -o name,creation,createtxg,guid
NAME                     CREATION               CREATETXG   GUID
pool/dataset#replicate3  Fri Oct 30 15:54 2015      8.70K  13502112369419254620

Boomarks have properties which are potentially of interest to users, but you cannot get the information for a specific bookmark. The only way I know of to get information out of bookmarks is to use a broad zfs list -t bookmark command.

(For the curious, the properties above are from the snapshot and not representative of the time the bookmark was taken.)

@mailinglists35
Copy link

I am also interested in getting properties for bookmarks

@mailinglists35
Copy link

additionally -o createtxg is not even documented. are there any undocumented properties other that createtxg?

@loli10K
Copy link
Contributor

loli10K commented Jan 25, 2017

@mailinglists35 this shoud be fixed by OpenZFS 7386 - zfs get does not work properly with bookmarks (openzfs/openzfs@edb901a) once that gets integrated.

are there any undocumented properties other that createtxg?

https://github.com/zfsonlinux/zfs/blob/zfs-0.7.0-rc3/module/zcommon/zfs_prop.c#L467

@gmelikov
Copy link
Member

I ported it in #5666, reviewers are welcome.

@DeHackEd
Copy link
Contributor Author

Presumed fixed by #5666 merge

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants