Bug #2403

newfs -E doesn't handle /dev/serno device names properly

Added by ftigeot over 2 years ago.

Status:NewStart date:08/17/2012
Priority:LowDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

Trying to run this command fails:

newfs_hammer -E -L USR_OBJ /dev/serno/00000000112233445566

Device:/dev/serno/00000000112233445566 (kern.cam.da.rno/00000000112233445566.trim_enabled) does not support the TRIM command
usage: newfs_hammer -L label [-Ef] [-b bootsize] [-m savesize] [-u undosize]
[-V version] special ...

The only trim_enabled sysctls id are of the form
kern.cam.da.0.trim_enabled
kern.cam.da.1.trim_enabled
kern.cam.da.2.trim_enabled
etc...

It seems newfs -E only expects drive names to be of the form /dev/daX
TRIM options in other utilities such as fdisk or disklabel may have the same issue

Also available in: Atom PDF