Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-110

FileSystemUtils.freeSpaceKb does not work on AIX

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2
    • 1.3.1
    • None
    • None
    • AIX operating system version 5.3
      $ uname
      AIX
      $ oslevel -r
      5300-04

    Description

      FileSystemUtils.freeSpaceKb does not work on AIX. Throws IOException . It is due to the format of 'df -k' output on AIX Operating System.

      $ df -k /
      Filesystem 1024-blocks Free %Used Iused %Iused Mounted on
      /dev/hd4 262144 168324 36% 3916 10% /

      Note the fourth entry is %Used.
      'df -kt' command provides the format expected by freeSpaceKb method.

      $ df -kt /
      Filesystem 1024-blocks Used Free %Used Mounted on
      /dev/hd4 262144 93820 168324 36% /

      So, for AIX operating system, change it to use 'df -kt ' instead of df -k

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              mrnagaraj Nagarajan Ragunathan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: