Unverified Commit 87a8cf75 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

feat: Support 32k sector sizes (#1034)

parent 7f31cb60
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -507,13 +507,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