Changeset 1137
- Timestamp:
- 01/24/08 02:08:33 (10 months ago)
- Files:
-
- trunk/server/CHANGES (modified) (1 diff)
- trunk/server/mogautomount (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/server/CHANGES
r1131 r1137 1 * New optional argument 'startpos' to fsck_reset. 1 * Add --chmod-mountpoints option to mogautomount, in an attempt to 2 prevent mogstored machines from accidentally writing to their under- 3 lying filesystem. 4 5 * New optional argument 'startpos' to fsck_reset. 2 6 3 7 * Use correct per-Store port, defaulting to UNIX sockets on localhost. trunk/server/mogautomount
r1009 r1137 7 7 $0 = $_ = $0; 8 8 9 my ($help, $verbose );9 my ($help, $verbose, $chmod_mountpoints); 10 10 usage(0) unless GetOptions( 11 11 'help' => \$help, 12 12 'verbose' => \$verbose, 13 'chmod-mountpoints' => \$chmod_mountpoints, 13 14 ); 14 15 usage(0) if @ARGV; … … 49 50 unless (-d $mnt) { mkdir $mnt or die "Failed to mkdir $mnt: $!"; } 50 51 next if $mounted{$dev}; 52 53 if ($chmod_mountpoints and ((stat($mnt))[2] & 0777) != 0) { 54 warn "Mountpoint on parent filesystem is writable, fixing.\n" if $verbose; 55 chmod 0, $mnt 56 or die "Unable to set mogile device mountpoint '$mnt' mode to 0 (no access)"; 57 } 51 58 52 59 if (system("mount", '-o', 'noatime', $dev, $mnt)) { … … 94 101 be verbose 95 102 103 =item --chmod-mountpoints 104 105 If a mogile device isn't mounted yet, check to make sure the underlying filesystem has the directory set 106 to be not readable or writable at all (chmod 0). This could help prevent mogstored from accidentally writing 107 to the underlying filesystem. 108 96 109 =back 97 110
