device priority use by mtx:
  the -f argument
  CHANGER environment variable
  TAPE environment variable
  /dev/changer

chg-zd-mtx set the TAPE environment variable, mtx use it unless you have the CHANGER variable set.

maybe we should set CHANGER too.

I don't know why it doesn't use -f, but I think for compatibility with older mtx version.

Jean-Louis

Stefan G. Weichinger wrote:
chg-zd-mtx works fine now after:

ln -s /dev/sg2 /dev/changer
chgrp tape /dev/sg2

This allowed the user amanda, which is member of the group tape, to
access the changer-device sg2 by simply running "mtx status", without
using "-f /dev/sg2". (mtx defaults to use /dev/changer, without "-f")

Right now amtape scans my inserted tapes without problems, and without
doing an amlabel-run (this wouldn't make much sense, relabel every tape
after each cartridge-change ...).

So I suggest a patch to the chg-zd-mtx-script:

instead of "mtx status"

it should be

"mtx -f /dev/$changerdev status"

Ok?

Greets, Stefan.


Reply via email to