From 5c2515c3a70d5b1af833f8568c89bd0fa197b9b4 Mon Sep 17 00:00:00 2001 From: Nocturn9x Date: Thu, 2 Dec 2021 18:55:33 +0100 Subject: [PATCH] Uncommented call to umount2() --- src/util/disks.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/disks.nim b/src/util/disks.nim index b33b6ea..ac0a2a4 100644 --- a/src/util/disks.nim +++ b/src/util/disks.nim @@ -213,7 +213,7 @@ proc unmountAllDisks*(logger: Logger, code: int) = continue logger.debug(&"Unmounting filesystem {entry.source} ({entry.filesystemtype}) from {entry.target}") logger.trace(&"Calling umount2('{entry.target}', MNT_DETACH)") - # var retcode = umount2(entry.target, 2) # 2 = MNT_DETACH - Since we're shutting down, we need the disks to be *gone*! + var retcode = umount2(entry.target, 2) # 2 = MNT_DETACH - Since we're shutting down, we need the disks to be *gone*! logger.trace(&"umount2('{entry.target}', MNT_DETACH) returned {retcode}") if retcode == -1: logger.error(&"Unmounting disk {entry.source} from {entry.target} has failed with error {posix.errno}: {posix.strerror(posix.errno)}")