From 26cd993557c901b1eef59e77a93487143ade473e Mon Sep 17 00:00:00 2001 From: Uwe Seimet Date: Fri, 27 Aug 2021 09:08:39 +0200 Subject: [PATCH] Comment update --- src/raspberrypi/rascsi.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/raspberrypi/rascsi.cpp b/src/raspberrypi/rascsi.cpp index 43c6eff3..617dd9b5 100644 --- a/src/raspberrypi/rascsi.cpp +++ b/src/raspberrypi/rascsi.cpp @@ -756,11 +756,11 @@ bool ProcessCmd(int fd, const PbDeviceDefinition& pbDevice, const PbOperation cm files_in_use.insert(filepath.GetPath()); } + // Stop the dry run here, before permanently modifying something if (dryRun) { return true; } - // Initialize everything that would have caused issues when being initialized during the dry run if (!device->Init(pbDevice.params())) { error << "Initialization of " << device->GetType() << " device, ID: " << id << ", unit: " << unit << " failed";