Uploaded image for project: 'VCL'
  1. VCL
  2. VCL-512

Linux.pm does not determine correct block size for some versions of Linux

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.2.1
    • 2.3
    • vcld (backend)
    • None

    Description

      In get_available_space and get_total_space, the code determines the block size by looking for the 'Block size:' value in the 'stat -f' output. Some versions of Linux don't display this as 'Block size:', but as 'Size:'

      File: "/"
      ID: 0 Namelen: 255 Type: ext2/ext3
      Blocks: Total: 8720776 Free: 8288294 Available: 7845302 Size: 4096
      Inodes: Total: 4431392 Free: 4353884

      Attachments

        Activity

          People

            arkurth Andrew Kurth
            arkurth Andrew Kurth
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: