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

disks/STORAGE: if device is less than 1 GiB, it gets rounded to ZERO - misleading #186

Open
gangelop opened this issue Oct 12, 2015 · 1 comment
Assignees

Comments

@gangelop
Copy link
Contributor

For example:

# xsos -d .
STORAGE
  Whole Disks from /proc/partitions:
    2 disks, totaling 137 GiB (0.13 TiB)
    - - - - - - - - - - - - - - - - - - - - -
    Disk        Size in GiB
    ----        -----------
    sda         0
    sdb         136

# cat proc/partitions 
major minor  #blocks  name

   8     0     201984 sda
   8     1     200832 sda1
   8    16  143103104 sdb
   8    17  143101952 sdb1
 253     0   69140480 dm-0
 253     1   61440000 dm-1
 253     2   12517376 dm-2
@gangelop
Copy link
Contributor Author

My title is probably not entirely accurate, but the point is, in some cases, it gets rounded to 0 GiB when it is not 0 blocks. You get the point...

@ryran ryran changed the title disks/STORAGE: if device is less than 1 GiB, it gets rounded to ZERO - mileading disks/STORAGE: if device is less than 1 GiB, it gets rounded to ZERO - misleading Feb 10, 2016
@ryran ryran self-assigned this Feb 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants