summaryrefslogtreecommitdiff
path: root/fsck.go
diff options
context:
space:
mode:
Diffstat (limited to 'fsck.go')
-rw-r--r--fsck.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/fsck.go b/fsck.go
index 70528cf..c0db576 100644
--- a/fsck.go
+++ b/fsck.go
@@ -295,6 +295,10 @@ func fsck(args *argContainer) (exitcode int) {
err = srv.Unmount()
if err != nil {
tlog.Warn.Printf("failed to unmount %q: %v", ck.mnt, err)
+ } else {
+ if err := syscall.Rmdir(ck.mnt); err != nil {
+ tlog.Warn.Printf("cleaning up %q failed: %v", ck.mnt, err)
+ }
}
}()
// Recursively check the root dir