From 8713e6fa7239b85d83f7055f73fe8a3b10fdb159 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sun, 25 Jan 2015 15:34:46 +0100 Subject: [PATCH] Allow to use the "smart" command while running --- cmdline/snapraid.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/cmdline/snapraid.c b/cmdline/snapraid.c index 1c244688..426934ba 100644 --- a/cmdline/snapraid.c +++ b/cmdline/snapraid.c @@ -900,6 +900,13 @@ int main(int argc, char* argv[]) break; } + switch (operation) { + case OPERATION_SMART : + /* we can use this command to check the SMART status during operations */ + opt.skip_lock = 1; + break; + } + /* open the log file */ log_open(log);