diff options
author | Karel Zak | 2012-04-27 10:30:08 +0200 |
---|---|---|
committer | Karel Zak | 2012-04-27 10:30:08 +0200 |
commit | 6257e4458295e4a731e3979588e21c95c0cc7186 (patch) | |
tree | 0cfb9c589106cd1b7b053d8e29f585eda7272cb1 /Makefile.am | |
parent | findmnt: add match_by_file to do within-device matching (diff) | |
download | kernel-qcow2-util-linux-6257e4458295e4a731e3979588e21c95c0cc7186.tar.gz kernel-qcow2-util-linux-6257e4458295e4a731e3979588e21c95c0cc7186.tar.xz kernel-qcow2-util-linux-6257e4458295e4a731e3979588e21c95c0cc7186.zip |
libmount: close device fd (to avoid mount(2) EBUSY)
libmount uses libblkid to detect filesystem type. Unfortunately, the
blkid probe struct is not freed before mount(2), it means that the
device is still open and mount(2) may return EBUSY.
We don't need persistent blkid stuff in libmount, so let's close
all immediately after device probing.
Reported-by: David Zeuthen <zeuthen@gmail.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'Makefile.am')
0 files changed, 0 insertions, 0 deletions