Page MenuHomeFreeBSD

ZFS: add bookmark renaming
ClosedPublic

Authored by avg on Sep 25 2019, 8:24 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 7, 5:17 PM
Unknown Object (File)
Mon, Dec 2, 3:34 PM
Unknown Object (File)
Nov 14 2024, 1:06 AM
Unknown Object (File)
Nov 6 2024, 12:09 AM
Unknown Object (File)
Nov 5 2024, 7:07 PM
Unknown Object (File)
Oct 28 2024, 3:55 PM
Unknown Object (File)
Oct 28 2024, 9:35 AM
Unknown Object (File)
Oct 19 2024, 4:50 AM

Details

Reviewers
mahrens
Group Reviewers
manpages
Commits
rS353037: ZFS: add bookmark renaming
Summary

The feature is implemented as an extension of the existing ZFS_IOC_RENAME
ioctl. Both the userland and the DSL interfaces support renaming only a
single bookmark at a time. As of now, there is no ZCP interface to the new
functionality. I am going to add it once the DSL interface passes a test of
time.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

the interfaces look good to me.

sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_bookmark.c
552–562 ↗(On Diff #62570)

I think we should do this in dsl_bookmark_rename_check (assuming it's necessary - I didn't see similar namecheck() calls for renaming snapshots, although maybe that's a bug?). This will help when making the channel program function, which would also want to do the same checks (name length at least).

bcr added a subscriber: bcr.

OK from manpages.

avg marked an inline comment as done.Sep 30 2019, 2:08 PM
avg added inline comments.
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/dsl_bookmark.c
552–562 ↗(On Diff #62570)

I added some of these checks before adding ENTITY_NAME check because there was nothing to ensure name validity back then.
I think that now we can be sure that the dataset name and the old bookmark name must be valid.
So, I think that only the new bookmark name and its full length need to be checked now.

I will move the needed checks to the check function and drop the redundant checks.
Thanks!

avg marked an inline comment as done.
  • drop redundant name checks
  • move name checks to the check function
This revision was not accepted when it landed; it landed in state Needs Review.Oct 3 2019, 11:09 AM
Closed by commit rS353037: ZFS: add bookmark renaming (authored by avg). · Explain Why
This revision was automatically updated to reflect the committed changes.