File: 00raid5-zero

package info (click to toggle)
mdadm 4.4-11
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 4,044 kB
  • sloc: ansic: 46,736; sh: 2,408; makefile: 284; python: 44
file content (12 lines) | stat: -rw-r--r-- 365 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12

if mdadm -CfR $md0 -l 5 -n3 $dev0 $dev1 $dev2 --write-zeroes ; then
  check nosync
  echo check > /sys/block/md0/md/sync_action;
  check wait
elif grep "zeroing [^ ]* failed: Operation not supported" \
     $targetdir/stderr; then
  echo "write-zeros not supported, skipping"
else
  echo >&2 "ERROR: mdadm return failure without not supported message"
  exit 1
fi