]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lib/sysfs: expect p<N> suffix for partitions
authorKarel Zak <kzak@redhat.com>
Mon, 13 Aug 2012 19:11:37 +0000 (21:11 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 13 Aug 2012 19:11:37 +0000 (21:11 +0200)
commita3b780532f926bc027d812b5317eda727a866fea
tree5527cf497594c353f839efe058caac6d6dbfcee2
parent096db1ead1ee2baea4acf5e44b192ad442733023
lib/sysfs: expect p<N> suffix for partitions

 ... so for example lsblk(8) will see partitioned loop devices

loop0       7:0    0    80G  0 loop
├─loop0p1 259:0    0   100M  0 loop
└─loop0p2 259:1    0  79.9G  0 loop

Signed-off-by: Karel Zak <kzak@redhat.com>
lib/sysfs.c