Index: sys/cam/ctl/prevent.sh =================================================================== --- sys/cam/ctl/prevent.sh +++ sys/cam/ctl/prevent.sh @@ -36,7 +36,7 @@ { atf_set "descr" "SCSI PREVENT ALLOW MEDIUM REMOVAL will prevent a CD from being ejected" atf_set "require.user" "root" - atf_set "require.progs" sg_prevent sg_start + atf_set "require.progs" "sg_prevent sg_start ctladm" } allow_body() { @@ -63,7 +63,7 @@ { atf_set "descr" "SCSI PREVENT ALLOW MEDIUM REMOVAL is idempotent when run from the same initiator" atf_set "require.user" "root" - atf_set "require.progs" sg_prevent sg_start + atf_set "require.progs" "sg_prevent sg_start ctladm" } allow_idempotent_body() { @@ -89,7 +89,7 @@ { atf_set "descr" "SCSI PREVENT ALLOW MEDIUM REMOVAL may not be used on non-removable media" atf_set "require.user" "root" - atf_set "require.progs" sg_prevent + atf_set "require.progs" "sg_prevent ctladm" } nonremovable_body() { @@ -108,7 +108,7 @@ { atf_set "descr" "SCSI PREVENT ALLOW MEDIUM REMOVAL will prevent a CD from being ejected" atf_set "require.user" "root" - atf_set "require.progs" sg_prevent sg_start + atf_set "require.progs" "sg_prevent sg_start ctladm" } prevent_body() { @@ -130,7 +130,7 @@ { atf_set "descr" "SCSI PREVENT ALLOW MEDIUM REMOVAL is idempotent when run from the same initiator" atf_set "require.user" "root" - atf_set "require.progs" sg_prevent sg_start + atf_set "require.progs" "sg_prevent sg_start ctladm" } prevent_idempotent_body() { Index: sys/cam/ctl/read_buffer.sh =================================================================== --- sys/cam/ctl/read_buffer.sh +++ sys/cam/ctl/read_buffer.sh @@ -35,7 +35,7 @@ { atf_set "descr" "READ BUFFER can retrieve data previously written by WRITE BUFFER" atf_set "require.user" "root" - atf_set "require.progs" sg_read_buffer sg_write_buffer + atf_set "require.progs" "sg_read_buffer sg_write_buffer ctladm" } basic_body() { @@ -66,7 +66,7 @@ { atf_set "descr" "READ BUFFER can retrieve the buffer size via the DESCRIPTOR mode" atf_set "require.user" "root" - atf_set "require.progs" sg_read_buffer + atf_set "require.progs" "sg_read_buffer ctladm" } desc_body() { @@ -84,7 +84,7 @@ { atf_set "descr" "READ BUFFER can limit its length with the LENGTH field" atf_set "require.user" "root" - atf_set "require.progs" sg_read_buffer sg_write_buffer + atf_set "require.progs" "sg_read_buffer sg_write_buffer ctladm" } length_body() { @@ -113,7 +113,7 @@ { atf_set "descr" "READ BUFFER accepts the BUFFER OFFSET field" atf_set "require.user" "root" - atf_set "require.progs" sg_read_buffer sg_write_buffer + atf_set "require.progs" "sg_read_buffer sg_write_buffer ctladm" } offset_body() { @@ -142,7 +142,7 @@ { atf_set "descr" "READ BUFFER buffers are zero-initialized" atf_set "require.user" "root" - atf_set "require.progs" sg_read_buffer + atf_set "require.progs" "sg_read_buffer ctladm" } uninitialized_body() { Index: sys/cam/ctl/start_stop_unit.sh =================================================================== --- sys/cam/ctl/start_stop_unit.sh +++ sys/cam/ctl/start_stop_unit.sh @@ -40,7 +40,7 @@ { atf_set "descr" "START STOP UNIT can eject a CDROM device" atf_set "require.user" "root" - atf_set "require.progs" sg_start sg_readcap + atf_set "require.progs" "sg_start sg_readcap ctladm" } eject_body() { @@ -68,7 +68,7 @@ { atf_set "descr" "START STOP UNIT can load a CDROM device" atf_set "require.user" "root" - atf_set "require.progs" sg_start sg_readcap + atf_set "require.progs" "sg_start sg_readcap ctladm" } load_body() { @@ -97,7 +97,7 @@ { atf_set "descr" "START STOP UNIT can start a device" atf_set "require.user" "root" - atf_set "require.progs" sg_start sg_readcap + atf_set "require.progs" "sg_start sg_readcap ctladm" } start_body() { @@ -123,7 +123,7 @@ { atf_set "descr" "START STOP UNIT can stop a device" atf_set "require.user" "root" - atf_set "require.progs" sg_start sg_readcap + atf_set "require.progs" "sg_start sg_readcap ctladm" } stop_body() {