Unverified Commit 19a48315 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Support 32k sector sizes (#854)

parent 589d37f9
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -550,13 +550,12 @@ addDevice () {
  physical="${physical%% *}"

 if [ -n "$physical" ]; then
    if [[ "$physical" == "512" || "$physical" == "4096" ]]; then
      if [[ "$physical" == "4096" ]]; then
    if [[ "$physical" != "512" ]]; then
      sectors=",logical_block_size=$logical,physical_block_size=$physical"
      fi
    else
      if [[ "$physical" != "4096" && "$physical" != "32768" ]]; then
        warn "Unknown physical sector size: $physical for $DISK_DEV"
      fi
    fi
  else
    warn "Failed to determine the sector size for $DISK_DEV"
  fi