xsos icon indicating copy to clipboard operation
xsos copied to clipboard

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

Open gangelop opened this issue 10 years ago • 1 comments

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 avatar Oct 12 '15 14:10 gangelop

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...

gangelop avatar Oct 12 '15 14:10 gangelop