Iustin Pop
75644f8ccd
Allow configuring the default tape device at build time
...
Also adds displaying it in the version output, and moves this (the
show version code) into a separate function.
2016-05-01 03:00:32 +02:00
Iustin Pop
cbf6e618f7
Merge pull request #9 : Add missing includes
2016-05-01 02:38:24 +02:00
Kai Mäkisara
6a00368c21
Allow negative argument for mkpartition
...
Allow negative argument for mtpartition to support kernels >= 4.6.
Update the mt man page.
2016-05-01 02:04:05 +02:00
Felix Janda
a844aeed7c
mt.c: Include <sys/sysmacros.h> for minor()
...
We already do the same in stinit.c.
<sys/macros.h> is currently implicitly included by <sys/types.h>
but this might change in the future.
2016-04-22 18:17:51 +02:00
Kai Mäkisara
6edb9f2cc5
Remove the redundant stshowopt command definition
...
The added stshowoptions allows stshowopt (command parsing accepts
any unambiguous abbreviation).
2016-02-12 21:22:24 +01:00
Kai Mäkisara
dd5afc0eb6
Check for overflow when using k, M or G
...
Check that using a postfix (k, M, G) with repeat count does not cause
overflow in the int mtop.mt_count.
2016-02-12 21:01:35 +01:00
Kai Mäkisara
b48a42742f
Remove obsolete test from do_show_options()
...
Remove from do_show_options() the now obsolete kernel
version test that has never worked correctly. Problem
reported by Emmanuel Florac.
2016-02-12 20:58:21 +01:00
Kai Mäkisara
ffd5dadee3
Add density codes
...
Add some density codes.
2016-02-12 20:58:13 +01:00
Iustin Pop
0ee3591e51
Rework the dist target and drop LSM file
...
Short of moving to autotools, this is the best that can be done:
- move the version from hardcoded in the .c files, to a
dynamically-built `version.h` file so that we only declare the
version in one place
- build a better dist file (.tar.gz) by explicitly selecting which
files to copy, instead of unbounded recursion from the source
directory
- ensure that the files being copied to the archive have a sane
user/group and mode
- add a distcheck target that simply reuses the archive to build and
run the programs, and then regenerate the archive from itself
autotools would solve all this by default, but still feels too
heavyweight for just two .c files.
Additionall, drop the .lsm file. It seems mostly useless these days;
I'll be happy to reinstate it however if anyone cares.
2016-02-07 20:38:27 +01:00
Iustin Pop
506424dc37
Update maintainership info in the remaining places
...
Also remove the 'last modified' entries as they're available from the VCS.
2016-02-07 18:21:29 +01:00
Iustin Pop
e4367cfb8c
Recode all ISO8859-1 files in UTF-8
...
While looking at Fedora's build spec for mt-st, I saw that they recode
the README.stinit file to UTF-8; this makes a lot of sense, so let's
recode all non-UTF files in UTF-8.
2016-02-04 20:14:04 +01:00
Iustin Pop
f3f4d9d57d
Add taoe density translation for LTO-7
2016-01-25 00:40:07 +01:00
Iustin Pop
4c0df9c184
Merge remote-tracking branch 'github/master'
2016-01-25 00:38:43 +01:00
David Sommerseth
d6e96c7172
Add tape density translation for LTO-5 and LTO-6
...
The codes used have been extracted from the mhvtl project.
2016-01-18 10:07:00 +01:00
Iustin Pop
ffb34b5ca9
Silence two further warnings
...
These two local variables seem unused, probably artifacts from some
older refactoring.
2015-05-29 10:57:59 +02:00
Ivo De Decker
e6a52fd9cf
support stshowoptions command
...
The manpage lists the stshowoptions command, while the code has the
stshowopt command. This patch enables support for both.
2015-05-29 10:31:02 +02:00
Jan Christoph Nordholz
4d88fb7a01
Get rid of all those gcc warnings
...
For the stinit.c change, buflen is positive in all cases, so use a
cast. The other changes are straightforward.
2015-05-29 10:28:47 +02:00
Kai Mäkisara
80e1c3d17c
Check that the default tape device is a chardev
...
When using the default tape device (no $TAPE env. var and no explicit
tape given), check that it is indeed a character device; this will
help with better error messages on systems using udev, where /dev/tape
is a directory instead.
2015-05-16 17:48:13 +02:00
Kai Mäkisara
f734645c0f
Add a few new density codes
2015-05-16 17:48:13 +02:00
Kai Mäkisara
c232ed0dd2
Backdated import of mt-st version 1.1
...
This is an import of the mt-st upstream release 1.1 as it appeared in
the Debian archives and on ftp://ftp.ibiblio.org/pub/linux/system/backup.
2015-05-16 17:46:05 +02:00
Kai Mäkisara
be12266b61
Backdated import of mt-st version 0.9b
...
This is an import of the mt-st upstream release 0.9b as it appeared in
the Debian archives.
2015-05-16 17:39:25 +02:00
Kai Mäkisara
11875969cd
Backdated import of mt-st version 0.8
...
This is an import of the mt-st upstream release 0.8 as it appeared in
the Debian archives.
2015-05-16 17:33:19 +02:00
Kai Mäkisara
fcb4fbe0d1
Backdated import of mt-st version 0.7
...
This is an import of the mt-st upstream release 0.7 as it appeared in
the Debian archives.
2015-05-16 17:26:03 +02:00