As far as I can tell what the script does is run "mount -t" and then whatever types you input after that. This will output something like the following:
Code:
/dev/sda2 on / type reiserfs (rw,acl,user_xattr)
/dev/sda1 on /boot type ext3 (rw,acl,user_xattr)
/dev/mapper/system-opt on /opt type reiserfs (rw,acl,user_xattr)
It then feeds this to a processor that will separate out the device name and the mount point for each line that the mount command output. I will use "/dev/mapper/system-opt on /opt type reiserfs (rw,acl,user_xattr)" in the following examples.
After separating out the device name and the mount point it then builds the following line:
Code:
df -mlP device name | tail -1
so in my case the command it will build is:
Code:
df -mlP /dev/mapper/system-opt | tail -1
Which outputs a line like:
Code:
/dev/mapper/system-opt 102397 16346 86052 16% /opt
This line is then parsed to grab the total blocks, used blocks, and available blocks
After this it does some housekeeping on all the variables and finally writes a line like:
Code:
info 2008-04-03 22:09:29 DISK: mail: dev: /dev/mapper/system-opt, mp: /opt, tot: 102397 avail: 86052
to the log file.
My guess is that the df -mlP command is not liking something that you have done...try running through this manually to see if you can see the error.