You use 'df -Tm' to determine available space for processing. This works
OK in most cases but fails in some, due to device name length.
I have a system that uses software raid, and the created raid device name
is too long, so 'df -Tm' prints the name on one line followed by the
details on a second line. This changes the number of fields from 7 to 6,
for the last line, and selects the percent used value for the 'size'.
I don't see anyplace where the extra 'Type' value is used so I removed the
'T' option and changed the awk command to print '$4' rather than '$5'.
This seems to work fine for getting disk size only.
You might want to consider testing for the number of fields in the last
line:
... | awk '{if($NF == 7) # it's one line
print $2
else
print $1}'`
in any2vob line 294.
Nobody/Anonymous
None
None
Public
|
Date: 2008-11-26 10:45 It is better using just the -P option for 'df'.... |
|
Date: 2007-06-06 00:08
|