# usermount-lib.pl
# Common functions for mounting and unmounting filesystems with the 'user'
# option set.
do '../web-lib.pl';
&init_config();
require '../ui-lib.pl';
&switch_to_remote_user();
do 'linux-lib.pl';
# parse_options(type, options)
# Convert an options string for some filesystem into the associative
# array %options
sub parse_options
{
local($_);
undef(%options);
if ($_[1] ne "-") {
foreach (split(/,/, $_[1])) {
if (/^([^=]+)=(.*)$/) { $options{$1} = $2; }
else { $options{$_} = ""; }
}
}
}
1;
syntax highlighted by Code2HTML, v. 0.9.1