cleanup: remove MT_ST_ prefix from SetDrvBufferOptions
This commit is contained in:
parent
01c023d50f
commit
ca953d831f
@ -134,20 +134,20 @@ pub enum SetDrvBufferCmd {
|
|||||||
|
|
||||||
bitflags::bitflags!{
|
bitflags::bitflags!{
|
||||||
pub struct SetDrvBufferOptions: i32 {
|
pub struct SetDrvBufferOptions: i32 {
|
||||||
const MT_ST_BUFFER_WRITES = 0x1;
|
const BUFFER_WRITES = 0x1;
|
||||||
const MT_ST_ASYNC_WRITES = 0x2;
|
const ASYNC_WRITES = 0x2;
|
||||||
const MT_ST_READ_AHEAD = 0x4;
|
const READ_AHEAD = 0x4;
|
||||||
const MT_ST_DEBUGGING = 0x8;
|
const DEBUGGING = 0x8;
|
||||||
const MT_ST_TWO_FM = 0x10;
|
const TWO_FM = 0x10;
|
||||||
const MT_ST_FAST_MTEOM = 0x20;
|
const FAST_MTEOM = 0x20;
|
||||||
const MT_ST_AUTO_LOCK = 0x40;
|
const AUTO_LOCK = 0x40;
|
||||||
const MT_ST_DEF_WRITES = 0x80;
|
const DEF_WRITES = 0x80;
|
||||||
const MT_ST_CAN_BSR = 0x100;
|
const CAN_BSR = 0x100;
|
||||||
const MT_ST_NO_BLKLIMS = 0x200;
|
const NO_BLKLIMS = 0x200;
|
||||||
const MT_ST_CAN_PARTITIONS = 0x400;
|
const CAN_PARTITIONS = 0x400;
|
||||||
const MT_ST_SCSI2LOGICAL = 0x800;
|
const SCSI2LOGICAL = 0x800;
|
||||||
const MT_ST_SYSV = 0x1000;
|
const SYSV = 0x1000;
|
||||||
const MT_ST_NOWAIT = 0x2000;
|
const NOWAIT = 0x2000;
|
||||||
const MT_ST_SILI = 0x4000;
|
const SILI = 0x4000;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -154,12 +154,12 @@ impl LinuxTapeHandle {
|
|||||||
let mut opts = SetDrvBufferOptions::empty();
|
let mut opts = SetDrvBufferOptions::empty();
|
||||||
|
|
||||||
// fixme: ? man st(4) claims we need to clear this for reliable multivolume
|
// fixme: ? man st(4) claims we need to clear this for reliable multivolume
|
||||||
opts.set(SetDrvBufferOptions::MT_ST_BUFFER_WRITES, true);
|
opts.set(SetDrvBufferOptions::BUFFER_WRITES, true);
|
||||||
|
|
||||||
// fixme: ?man st(4) claims we need to clear this for reliable multivolume
|
// fixme: ?man st(4) claims we need to clear this for reliable multivolume
|
||||||
opts.set(SetDrvBufferOptions::MT_ST_ASYNC_WRITES, true);
|
opts.set(SetDrvBufferOptions::ASYNC_WRITES, true);
|
||||||
|
|
||||||
opts.set(SetDrvBufferOptions::MT_ST_READ_AHEAD, true);
|
opts.set(SetDrvBufferOptions::READ_AHEAD, true);
|
||||||
|
|
||||||
self.set_drive_buffer_options(opts)
|
self.set_drive_buffer_options(opts)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user