Lines Matching refs:rawdev
366 ## Now guess at the underlying rawdev name, which could be exactly the same as fsdev.
367 ## Then determine whether or not rawdev claims support for TRIM commands.
370 rawdev=`echo $fsdev | $GAWK '{print gensub("[0-9]*$","","g")}'`
371 rawdev="`get_realpath "$rawdev"`"
372 if [ ! -e "$rawdev" ]; then
373 rawdev=""
374 elif [ ! -b "$rawdev" ]; then
375 rawdev=""
376 elif [ "`get_major $fsdev`" -ne "`get_major $rawdev`" ]; then ## sanity check
377 rawdev=""
386 echo "$rawdev: does not appear to be a SCSI/SATA SSD, aborting." >&2
389 if ! $HDPARM -I $rawdev | $GREP -i '[ ][*][ ]*Data Set Management TRIM supported' &>/dev/null ; then
391 echo "$rawdev: DSM/TRIM command not supported, aborting." >&2
394 echo "$rawdev: DSM/TRIM command not supported (continuing with dry-run)." >&2
397 if [ "$rawdev" = "" ]; then
402 ## We also need to know the offset of fsdev from the beginning of rawdev,
403 ## because TRIM requires absolute sector numbers within rawdev:
629 TRIM="$HDPARM --please-destroy-my-drive --trim-sector-ranges-stdin $rawdev"
858 -v rawdev="$rawdev" \