]> sourceware.org Git - lvm2.git/commit
dev-type: use fopen for sysfs file
authorZdenek Kabelac <zkabelac@redhat.com>
Sun, 7 Feb 2021 13:07:17 +0000 (14:07 +0100)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 8 Feb 2021 22:43:38 +0000 (23:43 +0100)
commit3bf2ca11d9ce4ce205a98828ec4bfe8169c33403
tree80c868a41884ff25202c1bbf76c3bd90d58de795
parente429e69b6593fa688727fb632d7050f05cd27317
dev-type: use fopen for sysfs file

Directly open sysfs files and save extra stat() call which
is not adding any extra safety in sysfs dir.
lib/device/dev-type.c
This page took 1.310729 seconds and 5 git commands to generate.