Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Truncated /bin/df gives 0 #27

Closed
awsumco opened this issue Jan 4, 2016 · 1 comment
Closed

Truncated /bin/df gives 0 #27

awsumco opened this issue Jan 4, 2016 · 1 comment

Comments

@awsumco
Copy link

awsumco commented Jan 4, 2016

Great work here but found that if disk mounts have long names, the case of LVM's the output is zero.

In order to fix the correct output I add '--portability' to the df command in disk.php.

From Man Page:

-P' --portability'
Use the POSIX output format. This is like the default format
except for the following:

   1. The information about each filesystem is always printed on
      exactly one line; a mount device is never put on a line by
      itself.  This means that if the mount device name is more
      than 20 characters long (e.g., for some network mounts), the
      columns are misaligned.

   2. The labels in the header output line are changed to conform
      to POSIX.
shevabam added a commit that referenced this issue Jan 8, 2016
@shevabam
Copy link
Owner

shevabam commented Jan 8, 2016

Hello,

Thanks ! I made the change on the file ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants