calcsize locks /dev/null? Why?
Heiko Schlittermann <[email protected]> Sun, 24 Mar 2019 13:09:01 +0100
| Newsgroups | gmane.comp.archivers.amanda.devel |
|---|---|
| Organization | schlittermann -- internet & unix support |
| Message-ID | <[email protected]> |
Hi,
we run into trouble with the amanda-client on a host running dockerd.
Dockerd has a shared lock on /dev/null. (Do not ask why.)
The calcsize program of the amanda-client suite tries to get an
exclusive lock on its FD 1 (which is opened to /dev/null).
Because of dockerd holding the shared lock already, the estimater gets
stuck.
See client-src/calsize.c ~ line 360 (Amanda 3.3.9)
What's the purpose of this lock? Just for serializing the estimater
runs? If so, we should not make us dependend on some other software by
conflicting with their locks.
Best regards from Dresden/Germany
Viele Grüße aus Dresden
Heiko Schlittermann
--
SCHLITTERMANN.de ---------------------------- internet & unix support -
Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
gnupg encrypted messages are welcome --------------- key ID: F69376CE -
! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -
signature.asc
(application/pgp-signature, 488 B)
-----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEE0L/WueylaUpvFJ3Or0zGdqa2wUIFAlyXc1wACgkQr0zGdqa2 wULMzAf+JGUPAImIYBXZIbeh/UsVI3JmYW+IJyQSDGTHLZBGP+L2UD12sr+qs874 2HHEYrMpXZuobr6x4heOz8BIj2Pe0qcT1bthTX/diByr/JvQbXUshyb/+OrRhWRv UBkT9OTh8kl7TfEZcTSsocsZhoP6MtXnC8mqmUOJxnRPgbIlxu4VavB7o1F9DtTt pCBIzqlSLhMgVxxurRFhHYdrvr4x3HEgyoALd4ATgtFaCARpbOsVjKA2OTDEkaVt rk5a8yMeV/wEGg3Y2DS9uamMLsFIqjrAbpLgLqNwoGcWh3edGnaTCDHUMoL5di/n +/vLCrhbmo/T3UyBpedEeXQMsMC//w== =9Stx -----END PGP SIGNATURE-----