Package: dmsetup
Version: 2:1.02.175-2.1
Severity: normal
X-Debbugs-Cc: [email protected]
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
**Problem**
Some of the docs indicate --table can take a filename as an argument.
It didn't work for me, even though sending the contents of the file to stdin
and omitting --table did work:
<terminal>
# dmsetup create recover-vgbarley-home --readonly --table /root/recover-
vgbarley-home.dm
Invalid format on line 1 of table .
Command failed.
# dmsetup create recover-vgbarley-home --readonly < /root/recover-vgbarley-
home.dm
# ls /dev/mapper/reco*
/dev/mapper/recover-vgbarley-home
</terminal>
**Documentation**
The man page and dmsetup --help both indicate `--table table|table_file` as the
syntax. However, the man page further down says
--table table
Specify a one-line table directly on the command line. See below for
more information on the table format.
i.e., it gives no indication that a filename would be acceptable, or how
the program decides which interpretation to make of the argument. The
example above specified the file as a full absolute path in an unsuccessful
effort to trigger the correct interpretation.
The man also doesn't say whether the argument to --table needs to be quoted,
though I assume it does.
The description of the table format further down does not say what syntax
for "device" is acceptable, i.e., major:minor, full path, path relative to
/dev.
- -- System Information:
Debian Release: 11.3
APT prefers stable-security
APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.10.0-15-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE,
TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not
set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages dmsetup depends on:
ii libc6 2.31-13+deb11u3
ii libdevmapper1.02.1 2:1.02.175-2.1
dmsetup recommends no packages.
dmsetup suggests no packages.
-----BEGIN PGP SIGNATURE-----
iQFSBAEBCgA8FiEEreS674/HIyV9gBfdnAYPmOsbK2AFAmK1NpYeHHJvc3Nib3ls
YW5Ac3RhbmZvcmRhbHVtbmkub3JnAAoJEJwGD5jrGytgrlQIAKHMGgda/lK/77Xu
hVnruOYVAoajmorhtIPpPI5IsLDJBv+JXypgsTBzCW4iH8Vyid/8q76BS8MLuZ9a
DG6+156nFGJdTMbSit5zq+730udHlN+ilOk/5EH5QVRYv7JEN2zcREJt+GFzx2Lk
leLM6uqy8RyoAniQrFnhPjcVZxWOuUexberI3MTggy/H5/qySohjHLIt3hRjbYLe
9wulBtko8VdwRUWgTJ2KLkVE1ih6V12pSAnnzheEipiKFEEmHe1Vw4np4yfE6wOb
QGddD1LFnmJYgMx3vDmOsPnHLCDp9kLg4vwadt6VugVQ4Iql4ymUCZtM7Ocjm1xm
3Tq7irc=
=q2KA
-----END PGP SIGNATURE-----