- Timestamp:
- Mar 29, 2010, 3:55:49 PM (16 years ago)
- Location:
- branches/eam_branches/20100225
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
DataStoreServer/scripts/dsreg (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/20100225
- Property svn:mergeinfo changed
-
branches/eam_branches/20100225/DataStoreServer/scripts/dsreg
r26829 r27517 356 356 die "file $path not found"; 357 357 } 358 if (!$file->{bytes}) { 359 my @finfo = stat($path); 360 unless (@finfo) { 361 die ("can't stat $path"); 358 # get the size of the file 359 my @finfo = stat($path); 360 unless (@finfo) { 361 die ("can't stat $path"); 362 } 363 # if size was supplied make sure that it matches the actual 364 # size 365 if ($file->{bytes}) { 366 my $current_size = $finfo[7]; 367 if ($file->{bytes} != $current_size) { 368 die "size on disk: $current_size does not match supplied" 369 . " size: $file->{bytes} for $path"; 362 370 } 371 } else { 363 372 $file->{bytes} = $finfo[7]; 364 373 }
Note:
See TracChangeset
for help on using the changeset viewer.
