Changeset 24408
- Timestamp:
- Jun 15, 2009, 12:42:50 PM (17 years ago)
- Location:
- trunk/Nebulous-Server
- Files:
-
- 2 edited
-
Changes (modified) (1 diff)
-
bin/nebdiskd (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/Changes
r24362 r24408 22 22 - rename Nebulous::Key->soft_volume Nebulous::Key->hard_volume and invert 23 23 the semantics 24 - add nebdiskd mountpoint test retyring 24 25 25 26 0.16 -
trunk/Nebulous-Server/bin/nebdiskd
r24407 r24408 139 139 poll_interval => $poll_interval, 140 140 debug => $debug, 141 retry => 3, 141 142 ); 142 143 }; … … 161 162 my $poll_interval = $p{poll_interval} || 60; 162 163 my $debug = $p{debug} || 0; 164 my $retry = $p{retry} || 1; 163 165 164 166 # setup the db on every pass incase the database died on us … … 179 181 # this /SHOULD/ fail if the mount point is handled by the 180 182 # automounter and it fails to mount 181 eval { 183 my $tries = 0; 184 TEST: eval { 185 $tries++; 182 186 unless (is_mountpoint($mnt)) { 183 187 $log->warn("$mnt is not a valid mountpoint"); … … 185 189 }; 186 190 if ($@) { 191 # try is_mountpoint() again if $retry > 1 192 if ($tries < $retry) { 193 $log->warn("retrying test of $mnt"); 194 goto TEST; 195 } 187 196 $log->warn($@); 188 197 $d_query->execute($mnt);
Note:
See TracChangeset
for help on using the changeset viewer.
