iustin / mt-st

Magnetic tape control tools for Linux SCSI tapes
Other
41 stars 12 forks source link

Change default tape device to /dev/nst0 #8

Closed svalx closed 8 years ago

svalx commented 8 years ago

Modern distributions doesn't have /dev/tape as link to /dev/nst0 any more. Instead it uses udev and creates different names in /dev/tape/by-id/ directory. So let's use /dev/nst0 for default tape device.

iustin commented 8 years ago

Hi,

Thanks for this and the other pull requests. I'm a bit reluctant to change the defaults without easy way to change it at compile time (especially the /usr vs /change). I'd rather take the default from some env. vars at build time, or—I also debated this—converting this to an autoconf-based build system, which would make it trivial to allow whatever the distribution wants to use at built time

I'll look more into this next week.

svalx commented 8 years ago

Hi, I'm new in GitHub, and has created some issues with patches instead of pull requests, sorry.

especially the /usr vs /change

We can create a symlink in / from /usr, though uses $(STINITDIR) and $(MTDIR) in Makefile allows to change path easy at build time.

iustin commented 8 years ago

No worries about the bugs.

I've pushed a different patch which allows customising the default tape device, e.g.:

make DEFTAPE=/dev/nst0

I hope this works well enough for you.