Page MenuHomeFreeBSD

Add support for zpool user properties
ClosedPublic

Authored by 0mp on Apr 18 2023, 2:05 PM.
Tags
Referenced Files
F100677607: D39657.id120931.diff
Fri, Oct 18, 6:34 AM
Unknown Object (File)
Sat, Oct 12, 3:47 AM
Unknown Object (File)
Wed, Oct 2, 9:11 PM
Unknown Object (File)
Wed, Oct 2, 5:46 AM
Unknown Object (File)
Mon, Sep 30, 11:27 AM
Unknown Object (File)
Mon, Sep 30, 10:28 AM
Unknown Object (File)
Sep 10 2024, 8:05 PM
Unknown Object (File)
Sep 9 2024, 5:29 AM
Subscribers

Details

Summary

Add support for zpool user properties

Usage:

zpool set org.freebsd:comment="this is my pool" poolname

Tests are based on zfs_set's user property tests.

Also stop truncating property values at MAXNAMELEN, use ZFS_MAXPROPLEN.

Co-authored-by: Mateusz Piotrowski <0mp@FreeBSD.org>
Obtained from: OpenZFS 8eae2d214cfa Add support for zpool user properties
Sponsored by: Beckhoff Automation GmbH & Co. KG.
Sponsored by: Klara Inc.

Diff Detail

Repository
rG FreeBSD src repository
Lint
No Lint Coverage
Unit
No Test Coverage
Build Status
Buildable 51003
Build 47894: arc lint + arc unit

Event Timeline

0mp requested review of this revision.Apr 18 2023, 2:05 PM

Remove unnecessary changes from the ABI file

Now that the patch has been merged upstream, let's rebase on the merged version.

markj added inline comments.
sys/contrib/openzfs/lib/libzfs/libzfs.abi
488

The upstream commit has more changes to libzfs.abi. Why aren't they in this patch?

sys/contrib/openzfs/lib/libzfs/libzfs.abi
488

I kept only the changes related to zpool user props. The upstream changes that are missing from this patch are "use_color" and "iterator" bits. I don't really know why those changes are parts of the zpool user properties patch in OpenZFS.

This revision is now accepted and ready to land.Apr 24 2023, 1:56 PM