161 reputation
5
bio website lesinigo.it
location Italy
age 33
visits member for 2 years
seen Jun 26 at 21:17

Self-made sysadmin, specialized on linux systems and trying to grow my own business. Also Python coder out of passion and necessity, learning my way through OOP and frameworks and whatnot.


Aug
1
comment Determine the size of a block device
@heinrich5991 when working with filesystems you should ask statfs() and friends. More importantly, you should not assume any direct relationship between the block device size and total / usable / effective / free / whatever space on filesystem.
Jul
30
comment Determine the size of a block device
@heinrich5991 technically it's rather useless to know how big a block device is if you cannot even read it...
Jul
30
comment Determine the size of a block device
And also only reports "native" names. On a server with iSCSI and/or multipath and/or LVM you get lots and lots of sd* and dm-* devices but usually you need to lookup the symlink of the one you're actually interested in (e.g.. a /dev/mapper/* one)
Feb
4
awarded  Supporter
Nov
7
awarded  Self-Learner
Nov
7
awarded  Student
Nov
7
awarded  Teacher
Nov
7
asked How to get the distribution of file sizes?
Nov
7
answered How to get the distribution of file sizes?
Nov
7
awarded  Autobiographer