Changeset 2b11a1d for fedkit


Ignore:
Timestamp:
Feb 22, 2010 7:59:13 AM (15 years ago)
Author:
Ted Faber <faber@…>
Branches:
axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
Children:
db64553
Parents:
55779d4
Message:

allow mounting /share

Location:
fedkit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • fedkit/smbmount.FreeBSD.pl

    r55779d4 r2b11a1d  
    2626$KILLALL="/usr/bin/killall";
    2727$AMD="/usr/sbin/amd";
     28
     29my $share = 1;
    2830
    2931print "Killing amd.\n";
     
    8587        # where PNAME is the name of the project at the mothership.  We need
    8688        # a second map for this since we will be mounting under /proj.
    87         # We should really not use share in federation.
    88         #
    8989
    9090        if($user =~ m/$PUSER/i) {
     
    101101                        die("Failed to make directory");
    102102            }
     103            if ( $share) {
     104                print FSTAB "//$user\@$SHARE/share\t";
     105                print FSTAB "$AMDROOT/share\tsmbfs\t";
     106                print FSTAB "noauto,rw,-N,-f774,-d775,-u$uid,-g$gid\t0\t0\n";
     107
     108                print PMAP "$PNAME type:=program;fs:=$AMDROOT/share\\\n";
     109                print PMAP "mount:=\"$MOUNT mount $AMDROOT/share\";\\\n";
     110                print PMAP "unmount:=\"$UMOUNT unmount $AMDROOT/share\";\n";
     111
     112                if(! -d "$AMDROOT/share") {
     113                        system("$MKDIR -p $AMDROOT/share") &&
     114                            die("Failed to make directory");
     115                }
     116            }
    103117        }
    104118    }
  • fedkit/smbmount.Linux.pl

    r55779d4 r2b11a1d  
    1313$HOMEROOT="/users";
    1414$PROJROOT="/proj";
     15
     16my $share = 1;
    1517
    1618chomp $ADDR;
     
    8284            print FSTAB "$PROJROOT/$PNAME\tcifs\t";
    8385            print FSTAB "rw,credentials=/tmp/$user.cifs_creds,ip=$ADDR\t0\t0\n";
     86            if ( $share) {
     87                print FSTAB "//$SHARE/share\t";
     88                print FSTAB "/share\tcifs\t";
     89                print FSTAB "rw,credentials=/tmp/$user.cifs_creds,ip=$ADDR\t0\t0\n";
    8490
     91                mkdir("/share") unless -d "/share";
     92            }
    8593        }
    8694    }
Note: See TracChangeset for help on using the changeset viewer.