From bd70c584037c1b0b5efec85bda5d429090ede8a9 Mon Sep 17 00:00:00 2001 From: AlexSSD7 Date: Wed, 27 Sep 2023 14:41:39 +0100 Subject: [PATCH] dev_faulty_bs warning --- cmd/utils.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/utils.go b/cmd/utils.go index 488cfe8..c13e395 100644 --- a/cmd/utils.go +++ b/cmd/utils.go @@ -284,6 +284,10 @@ func getDevicePassthroughConfig(val string) (*vm.PassthroughConfig, error) { // // This mode emulates the faulty block size definition for compatibility with older Linsk versions. + slog.Warn("RISK WARNING: Skipping device block size detection and using the default of 512 bytes. Please use this ONLY to recover data from disks with filesystem that were locked to emulated 512-byte block size.") + + // TODO: Remove the need to specify the FS type manually. + devPath := filepath.Clean(valSplit[1]) err := osspecifics.CheckValidDevicePath(devPath)