summaryrefslogtreecommitdiff
path: root/mkfs.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2013-01-24 18:18:50 -0600
committerZach Brown <zab@redhat.com>2013-02-05 16:09:41 -0800
commita2eec48a8e863e34715cb111b5f578e58d728b7c (patch)
tree8aa5d2f0aaa4a313aec0d8ed3efb02d63d5d6c7d /mkfs.c
parent6bd3a02fa67369c8a53c1b457e72c7330cfef3af (diff)
btrfs-progs: don't use closed fd
In the case that btrfs scrub cancel is given a device name, we close the file handle, and then pass it to check_mounted_where() which eventually preads from that (now closed) fd. Fix the logic so that we close & re-open the discovered mountpoint properly. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Zach Brown <zab@redhat.com>
Diffstat (limited to 'mkfs.c')
0 files changed, 0 insertions, 0 deletions