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

Jorg Vehlow lkml at jv-coder.de
Wed Sep 25 08:17:12 UTC 2019


I'm not sure, if it matters ;) if you like it, but it is the way
util-linux's losetup works and I think this is the reference for busybox's
losetup.

Jörg

@Dietmar: Sorry for the duplicate, forgot to add the mailing list

-----Ursprüngliche Nachricht-----
Von: busybox <busybox-bounces at busybox.net> Im Auftrag von
dietmar.schindler at manrolandgoss.com
Gesendet: Mittwoch, 25. September 2019 07:45
An: busybox at busybox.net
Betreff: RE: [PATCH] losetup: Create loop device if it does not exist

> 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.
________________________________
_______________________________________________
busybox mailing list
busybox at busybox.net
http://lists.busybox.net/mailman/listinfo/busybox



More information about the busybox mailing list