Commit d8981dfe authored by Vitaly Lipatov's avatar Vitaly Lipatov

hdd/shelf-layout: default geometry to 4 cols x 6 rows

Matches the physical layout of the 24-bay shelf on pve-backup (4 columns, 6 rows tall) rather than the previous 6x4. Co-Authored-By: 's avatarClaude Opus 4.7 (1M context) <noreply@anthropic.com>
parent b9e9d5d1
......@@ -4,7 +4,7 @@
#
# Usage: shelf-layout.sh [enclosure_addr]
# Example: shelf-layout.sh 6:0:22:0
# Env: COLS=6 ROWS=4 shelf geometry, slot 0 top-left, left->right then row down
# Env: COLS=4 ROWS=6 shelf geometry, slot 0 top-left, left->right then row down
set -u
......@@ -13,8 +13,8 @@ enc=${1:-$(ls /sys/class/enclosure/ 2>/dev/null | head -1)}
encdir=/sys/class/enclosure/$enc
[ -d "$encdir" ] || { echo "shelf-layout: $encdir does not exist" >&2; exit 1; }
cols=${COLS:-6}
rows=${ROWS:-4}
cols=${COLS:-4}
rows=${ROWS:-6}
declare -A slot_dev slot_status
for d in "$encdir"/[0-9]*; do
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment