storaged-project / blivet

A python module for configuration of block devices
GNU Lesser General Public License v2.1
97 stars 85 forks source link

Get filesystem size and free space from udev when possible #1242

Open vojtechtrefny opened 2 months ago

vojtechtrefny commented 2 months ago

For some filesystems blkid can now read the filesystem size and free space from the filesystem metadata and these are also available in udev:

E: ID_FS_BLOCKSIZE=4096
E: ID_FS_LASTBLOCK=262144
E: ID_FS_SIZE=1073741824
E: ID_FS_TYPE=ext4

we should use these values when possible instead of getting the information manually.