1 hour ago · Tech · hide · 0 comments

Folks sometimes forget that OpenZFS Mastery has a co-author. Here’s a bit Allan Jude originally wrote. But what if Lucas is incompetent or evil? You give him access to take his own snapshots and he will try to create a million “just to see what would happen.” You know people like that. ZFS has your back when dealing with these difficult users. The snapshot_limit and filesystem_limit properties allow you to restrict the number of snapshots or child filesystems that can be created under a dataset. Set these properties to one greater than the number of snapshots or datasets you want the user to create. If you set snapshot_limit to 10, the user can create nine snapshots. The tenth generates an error. The read-only filesystem_count and snapshot_count properties allow you to quickly see how many filesystems or snapshots exist, and compare that number to the limit. To contain the pure evil that is Lucas, here we restrain him to only two snapshots. OpenZFS Mastery is looking for sponsors, and…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.