adamoutler / mythicallibrarian

Automatically exported from code.google.com/p/mythicallibrarian
1 stars 0 forks source link

freespace variables fail for long filesystem paths ( lvm ) #1

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I use Ubuntu 9.10 Karmic Koala with lvm set up on it. 

While setting up mythicallibrarian I found that the checkpermissions
function always failed no matter what.

I traced this back to line 537:

MoveDirFreeSpace=`df $MoveDir|sed -n 2p|awk '{print $4}'
(and the four similar lines that follow)

I was able to fix it by changing the numbers
MoveDirFreeSpace=`df $MoveDir|sed -n 3p|awk '{print $3}'

What I found to happening was df will split its output into multiple lines
if the filesystem path is too long for its formatting. In my case,
"/dev/mapper/VolGroup00-media" kicked the remaining information to the next
line.

Original issue reported on code.google.com by adecke...@gmail.com on 27 Jan 2010 at 5:46

GoogleCodeExporter commented 8 years ago
Fixed See SVN.

Original comment by AdamOutl...@gmail.com on 31 Jan 2010 at 4:27