summaryrefslogtreecommitdiff
path: root/btrfsctl.c
diff options
context:
space:
mode:
authorAndi Drebes <lists-receive@programmierforen.de>2010-09-09 10:58:43 +0800
committerChris Mason <chris.mason@oracle.com>2010-09-23 20:26:49 -0400
commit659d37c68d0676dcb9a9990bdbe61b98f11b0246 (patch)
treebf6792f098cb12f44d5a85a9aec67e1819820d0c /btrfsctl.c
parent09559bfe7bcd43965bf8d3090f6f761fd785d093 (diff)
prevent btrfsck to run on mounted filesystems
As recently discussed on the list, btrfsck should only be run on unmounted filesystems. This patch adds a short check for the mount status at the beginning of btrfsck. If the FS is mounted, the program aborts showing an error message. Signed-off-by: Andi Drebes <lists-receive@programmierforen.de>
Diffstat (limited to 'btrfsctl.c')
0 files changed, 0 insertions, 0 deletions