[PATCH] losetup: Create loop device if it does not exist

dietmar.schindler at manrolandgoss.com dietmar.schindler at manrolandgoss.com
Wed Sep 25 05:45:07 UTC 2019

> From: busybox <busybox-bounces at busybox.net> On Behalf Of Joerg Vehlow
> Sent: Monday, September 23, 2019 7:39 AM
> util-linux's losetup creates a loop device, if it is missing.
> This is missing in busybox's implementation.
> Testcase:
> losetup /dev/loop1000 <somepath>
> If /dev/loop1000 does not exist busybox give an error but
> util-linux's losetup just creates the file

I'm not sure whether I'd like to have a device file created if I made a typo on the command line.
Mit freundlichen Grüßen,
Dietmar Schindler
manroland Goss web systems GmbH | Managing Director: Franz Kriechbaum
Registered Office: Augsburg | Trade Register: AG Augsburg | HRB-No.: 32609 | VAT: DE815764857

Confidentiality note:
This message and any attached documents may contain confidential or proprietary information of manroland|Goss. These materials are intended only for the use of the intended recipient. If you are not the intended recipient of this transmission, you are hereby notified that any distribution, disclosure, printing, copying, storage, modification or the taking of any action in reliance upon this transmission is strictly prohibited. Delivery of this message to any person other than the intended recipient shall not compromise or waive such confidentiality, privilege or exemption from disclosure as to this communication. If you have received this communication in error, please immediately notify the sender and delete the message from your system. All liability for viruses is excluded to the fullest extent permitted by law.

More information about the busybox mailing list