Skip to content

Commit

Permalink
there are plenty, some os specific, valid opts, so just don't bother …
Browse files Browse the repository at this point in the history
…checking for them
  • Loading branch information
crucially authored and dpavlin committed May 21, 2010
1 parent 1566961 commit 99eb133
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Fuse.pm
Expand Up @@ -79,10 +79,8 @@ sub main {
rename link chmod chown truncate utime open read write statfs
flush release fsync setxattr getxattr listxattr removexattr);
my @subs = map {undef} @names;
my @validOpts = qw(ro allow_other default_permissions fsname use_ino nonempty);
my $tmp = 0;
my %mapping = map { $_ => $tmp++ } @names;
my %optmap = map { $_ => 1 } @validOpts;
my @otherargs = qw(debug threaded mountpoint mountopts);
my %otherargs = (debug=>0, threaded=>0, mountpoint=>"", mountopts=>"");
while(my $name = shift) {
Expand All @@ -95,10 +93,6 @@ sub main {
$subs[$mapping{$name}] = $subref;
}
}
foreach my $opt ( map {m/^([^=]*)/; $1} split(/,/,$otherargs{mountopts}) ) {
next if exists($optmap{$opt});
croak "Fuse::main: invalid '$opt' argument in mountopts";
}
if($otherargs{threaded}) {
# make sure threads are both available, and loaded.
if($Config{useithreads}) {
Expand Down

0 comments on commit 99eb133

Please sign in to comment.