#1013463 dmsetup create --table <filename> doesn't seem to work

Package:
dmsetup
Source:
lvm2
Description:
Linux Kernel Device Mapper userspace library
Submitter:
Ross Boylan
Date:
2022-06-24 04:03:03 UTC
Severity:
normal
#1013463#5
Date:
2022-06-24 03:59:32 UTC
From:
To:
**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
-----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-----