[Bug 253227] zfs does not respect snapshot_limit (at least for volumes)

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Wed Feb 3 22:44:19 UTC 2021


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=253227

Alan Somers <asomers at FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |asomers at FreeBSD.org

--- Comment #1 from Alan Somers <asomers at FreeBSD.org> ---
I think you're misunderstanding the feature.  From the man page "The limit is
not enforced if the user is allowed to change the limit."  That means that the
limit never affects root.  It only matters if you've delegated the snapshot
permission.  Have you?

Here's a demonstration:
$ sudo zfs create bar/barf
$ sudo zfs set snapshot_limit=2 bar/barf
$ sudo zfs allow -u somers snapshot bar/barf
$ zfs snapshot bar/barf at 1
$ zfs snapshot bar/barf at 2
$ zfs snapshot bar/barf at 3
cannot create snapshot 'bar/barf': out of space
$ sudo zfs snapshot bar/barf at 3

Notice that even after the limit was exceeded, root was allowed to take another
snapshot.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-fs mailing list