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.
Details
Details
- Reviewers
mahrens - Group Reviewers
manpages - Commits
- rS353037: ZFS: add bookmark renaming
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
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). |
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 will move the needed checks to the check function and drop the redundant checks. |