Fitas do Linux, o que é l e m no final dos dispositivos de fita no dev?

4

Eu vejo esses arquivos no servidor linux

find /dev/*st*0*

Me dê

/dev/nst0
/dev/nst0a
/dev/nst0l
/dev/nst0m
/dev/st0
/dev/st0a
/dev/st0l
/dev/st0m

Eu sei n antes st significa "sem retrocesso" mas o que significa o ae no final?

    
por elbarna 21.02.2017 / 19:50

1 resposta

2

De Documentação / scsi / st.txt :

The system manager (root) can define default values for some tape parameters, like block size and density using the MTSETDRVBUFFER ioctl. These parameters can be programmed to come into effect either when a new tape is loaded into the drive or if writing begins at the beginning of the tape. The second method is applicable if the tape drive performs auto-detection of the tape format well (like some QIC-drives). The result is that any tape can be read, writing can be continued using existing format, and the default format is used if the tape is rewritten from the beginning (or a new tape is written for the first time). The first method is applicable if the drive does not perform auto-detection well enough and there is a single "sensible" mode for the device. An example is a DAT drive that is used only in variable block mode (I don't know if this is sensible or not :-).

The user can override the parameters defined by the system manager. The changes persist until the defaults again come into effect.

By default, up to four modes can be defined and selected using the minor number (bits 5 and 6). The number of modes can be changed by changing ST_NBR_MODE_BITS in st.h. Mode 0 corresponds to the defaults discussed above. Additional modes are dormant until they are defined by the system manager (root). When specification of a new mode is started, the configuration of mode 0 is used to provide a starting point for definition of the new mode.

Using the modes allows the system manager to give the users choices over some of the buffering parameters not directly accessible to the users (buffered and asynchronous writes). The modes also allow choices between formats in multi-tape operations (the explicitly overridden parameters are reset when a new tape is loaded).

Os sufixos são mapeados para os modos: o modo # 0 não tem sufixo e os outros 3 são l , m e a .

Também há algumas informações sobre isso na manpage :

Within each group, four minor numbers are available to define devices with different characteristics (block size, compression, density, etc.) When the system starts up, only the first device is available. The other three are activated when the default characteristics are defined (see below).

e:

The default options for a tape device are set with MT_ST_DEFBOOLEANS. A nonactive tape device (e.g., device with minor 32 or 160) is activated when the default options for it are defined the first time. An activated device inherits from the device activated at start-up the options not set explicitly.

É possível recompilar o driver para suportar até 16 modos, caso em que a sequência de letras é expandida para em branco, r , k , s , l , t , o , u , m , v , p , x , a , y , q , z . Estou curioso para saber se há algum significado por trás dessas letras em particular nessa ordem específica, mas não consegui encontrá-lo. :) Aqui onde foi introduzido, de qualquer forma.

    
por 21.02.2017 / 22:30

Tags