mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Enforce PROP_ONETIME on zpool properties
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Chunwei Chen <david.chen@osnexus.com> Closes #7661
This commit is contained in:
committed by
Brian Behlendorf
parent
69830602de
commit
edf60b8645
@@ -171,6 +171,12 @@ zpool_prop_readonly(zpool_prop_t prop)
|
||||
return (zpool_prop_table[prop].pd_attr == PROP_READONLY);
|
||||
}
|
||||
|
||||
boolean_t
|
||||
zpool_prop_setonce(zpool_prop_t prop)
|
||||
{
|
||||
return (zpool_prop_table[prop].pd_attr == PROP_ONETIME);
|
||||
}
|
||||
|
||||
const char *
|
||||
zpool_prop_default_string(zpool_prop_t prop)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user