Skip to content
This repository has been archived by the owner. It is now read-only.

Commit

Permalink
add a new shortlabel format for dataX to mount at PREFIX/X
Browse files Browse the repository at this point in the history
  • Loading branch information
mariux committed Dec 21, 2011
1 parent 37bf732 commit 42b6e12
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mxmount
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,11 @@ sub parse_data {
if($D->{label} =~ /^X/) {
$D->{mountpoint} = 'X/' . $D->{label};
$D->{label} = lc($D->{label});
} elsif($D->{label} =~ /^data(.*)/) {
$D->{mountpoint} = $1;
} else {
$D->{mountpoint} = $D->{label};
warn "mxmount: unknown shortlabel '$D->{label}'.. skipping..";
next;
}
}
if($D->{mountpoint} !~ m(^\/)) {
Expand Down

0 comments on commit 42b6e12

Please sign in to comment.