App-ZFSCurses
view release on metacpan or search on metacpan
lib/App/ZFSCurses/WidgetFactory.pm view on Meta::CPAN
Return the properties hash.
=cut
sub properties {
my $self = shift;
return $self->{properties};
}
=head2 is_property_ro
Check whether a property is read only (cannot be changed).
=cut
sub is_property_ro {
my $self = shift;
my $property = shift;
my $array = $self->{ro_properties};
# 1 -> true. property is read only.
# 0 -> false. property is not read only.
my $is_ro = 1;
foreach ( 0 .. $#$array ) {
if ( $array->[$_] eq $property ) {
$is_ro = 0;
last;
}
}
return $is_ro;
}
=head1 AUTHOR
Patrice Clement <monsieurp at cpan.org>
=head1 LICENSE AND COPYRIGHT
This software is copyright (c) 2020 by Patrice Clement.
This is free software, licensed under the (three-clause) BSD License.
See the LICENSE file.
=cut
1;
__DATA__
aclinherit%discard,noallow,restricted,passthrough,passthrough-x
aclmode%discard,groupmask,passthrough,restricted
atime%on,off
canmount%on,off,noauto
checksum%on,off,fletcher2,fletcher4,sha256,noparity,sha512,skein
compression%on,off,lzjb,zle,lz4,gzip
copies%1,2,3
casesensitivity%sensitive,insensitive,mixed
dedup%on,off,verify,sha256,sha256verify,sha512,sha512verify,skein,skeinverify
devices%on,off
dnodesize%legacy,auto,1k,2k,4k,8k,16k
exec%on,off
jailed%off,on
logbias%latency,throughput
mlslabel%label,none
nbmand%on,off
normalization%none,formC,formD,formKC,formKD
primarycache%all,none,metadata
readonly%on,off
redundant_metadata%all,most
secondarycache%all,none,metadata
setuid%on,off
sharenfs%on,off,opts
sharesmb%on,off,opts
version%1,2,3,4,5,current
snapdir%hidden,visible
sync%standard,always,disabled
volmode%default,geom,dev,none
vscan%off,on
xattr%off,on
snapshot_limit%ALNUM
filesystem_limit%ALNUM
quota%ALNUM
recordsize%ALNUM
refquota%ALNUM
refreservation%ALNUM
reservation%ALNUM
mountpoint%ALNUM
volsize%ALNUM
( run in 0.421 second using v1.01-cache-2.11-cpan-39bf76dae61 )