Lines Matching refs:raiddev
47 raiddev=""
61 if [ "$raiddev" = "" ]; then
62 raiddev=${1##*/}
73 [ "$raiddev" = "" ] && usage_error
152 if ! $GREP raid1 /sys/block/$raiddev/md/level 1>/dev/null ; then
153 echo "$raiddev is not a RAID1 array."
159 slaves=(`$LS /sys/block/$raiddev/slaves`)
183 echo "No constituent of $raiddev array supports TRIM. Aborting."
272 if ! dd iflag=direct status=noxfer bs=$SECTOR_BYTES count=$LAST_EXTENT_SECTOR_COUNT skip=$LAST_EXTENT_LBA if=/dev/$raiddev 2>/dev/null | $GREP "$TESTSTR" &>/dev/null ; then
279 refchksum=`dd iflag=direct status=noxfer bs=$SECTOR_BYTES count=$LAST_EXTENT_SECTOR_COUNT skip=$LAST_EXTENT_LBA if=/dev/$raiddev 2>/dev/null | sha1sum`
286 echo "Direct I/O of last extent of tmpfile on $slave doesn't match that of $raiddev. Excluding."
293 echo "No constituent of $raiddev array has a matching checksum. Aborting."
297 echo "TRIMable constituents of $raiddev: ${slaves[@]}"