- Timestamp:
- Feb 22, 2010 7:59:13 AM (15 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-3.01, version-3.02
- Children:
- db64553
- Parents:
- 55779d4
- Location:
- fedkit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
fedkit/smbmount.FreeBSD.pl
r55779d4 r2b11a1d 26 26 $KILLALL="/usr/bin/killall"; 27 27 $AMD="/usr/sbin/amd"; 28 29 my $share = 1; 28 30 29 31 print "Killing amd.\n"; … … 85 87 # where PNAME is the name of the project at the mothership. We need 86 88 # a second map for this since we will be mounting under /proj. 87 # We should really not use share in federation.88 #89 89 90 90 if($user =~ m/$PUSER/i) { … … 101 101 die("Failed to make directory"); 102 102 } 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 } 103 117 } 104 118 } -
fedkit/smbmount.Linux.pl
r55779d4 r2b11a1d 13 13 $HOMEROOT="/users"; 14 14 $PROJROOT="/proj"; 15 16 my $share = 1; 15 17 16 18 chomp $ADDR; … … 82 84 print FSTAB "$PROJROOT/$PNAME\tcifs\t"; 83 85 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"; 84 90 91 mkdir("/share") unless -d "/share"; 92 } 85 93 } 86 94 }
Note: See TracChangeset
for help on using the changeset viewer.