get_filer
Returns the NetApp::Filer object for the filer on which this export exists.
get_type
Returns a string with one of the following values:
temporary
permanent
indicating whether or not this particular export has been written to /etc/exports.
get_active
Returns a boolean value, false only if the type is "permanent", and the same export was not found in the
list of currently active exports (i.e. not found in the output of "exportfs"). A temporary export is
always active, by definition.
get_path
Returns a string representing the path for the export. Note that this may not necessarily be the same as
the actual pathname of the underlying volume or qtree.
get_actual
Returns a string representing the "actual" path of the underlying volume or qtree for the export. If a
volume or qtree as been exported using a different name, this is the actual path of the underlying
object. If this export option was not used, this method will return an empty string.
get_nosuid
Returns a boolean value, indicating whether or not the "nosuid" option is used by the export.
set_nosuid($boolean)
This method takes a single argument, interpreted in boolean context, an sets the "nosuid" option for the
export.
get_anon
Returns the value of the "anon" option, if set. Since this option can have the value of "0", it returns
undef when this option has not been set.
WARNING: be careful interpreting this in a simple boolean context. To test whether or not this option
has been set use "defined".
set_anon($anon)
Takes a single argument, and sest the "anon" opton to that value. To unset this option, pass an
undefined value:
$export->set_anon( undef );
get_sec
Returns a list of the "sec" option values.
set_sec($arrayref)
Takes a single argument, an array reference of "sec" values, which can be any of: none, sec, krb5, krb5i,
or krb5p. This API does no validation of these values, so if an invalid value is given, this will result
in a fatal exception when the "update" method is called.
has_sec($sec)
Takes a single string argument, and returns true if that value is found in the list of "sec" options,
false otherwise.
add_sec($sec)
Takes a single string argument, and adds that value to the list of "sec" options, if not already present.
remove_sec($sec)
Takes a single string argument, and removes that value from the list of "sec" options, if present.
get_root
Returns a list of the "root" option values.
set_root($arrayref)
Takes a single argument, an array reference of "root" values, which can be any combination of hostnames,
IP addresses, or networks. Again, no data validation is performed, so bogus values will not be detected
until the export is updated on the filer, using the "update" method.
To clear the root option entirely, simply pass an empty array reference.
has_root($root)
Takes a single string argument, and returns true if that value is found in the list of "root" options,
false otherwise.
add_root($root)
Takes a single string argument, and adds that value to the list of "root" options, if not already
present.
remove_root($root)
Takes a single string argument, and removes that value from the list of "root" options, if present.
get_ro_all
Returns a boolean value, indicating whether or not the "ro_all" option has been set.
set_ro_all($boolean)
Takes a single boolean argument, and sets the "ro_all" option to it's value. Setting "ro_all" to a true
value will clear the "ro" list, if it exists.
Also, if "ro_all" is true, then the following methods will quietly do nothing:
has_ro
add_ro
remove_ro
The "ro_all" option must be cleared (set to a false value) first.
get_ro
Returns a list of the "ro" entries, if any. Returns nothing if "ro_all" has been set.
set_ro($arrayref)
Takes a single argument, an array reference of "ro" values. Setting the "ro" list explicitly will set
clear "ro_all" (set it to a false value).
has_ro($ro)
Takes a single argument, and returns true if that value is found in the list of "ro" options, false
otherwise. If "ro_all" is true, then it always returns false.
add_ro($ro)
Takes a single string argument, and adds that value to the list of "ro" options, if not already present.
If "ro_all" is true, then this method will do nothing.
remove_ro($ro)
Takes a single string argument, and removes that value from the list of "ro" options, if present. If
"ro_all" is true, then this method does nothing.
get_rw_all,set_rw_all,get_rw,set_rw,has_rw,add_rw,remove_rw
All of these methods behave exactly the same as their "ro" counterparts described immediately above.
They apply to the "rw" option, instead of "ro", but if that isn't obvious...
update
This method re-exports the export, using "exportfs". If ANY of the object attributes have been changed
programmatically, those changes will not take effect on the filer until this method has been called.
Note that updating an export will not necessarily change it's "type" from temporary to permanent, unless
the "type" is explicitly changed.
compare($export)
This method takes a single NetApp::Filer::Export object, and compares the current object (that is, the
one on which the method was called) to it. If they have the same basic export options, it returns true,
otherwise, it returns false. Only the following options are compared:
actual
nosuid
anon
sec
root
rw/rw_all
ro/ro_all
perl v5.36.0 2022-11-19 NetApp::Filer::Export(3pm)