[Toybox] [PATCH] Fix losetup for Android.

enh enh at google.com
Wed Nov 29 19:12:21 PST 2017


actually, the attached (using CFG_TOYBOX_ON_ANDROID) is probably
preferable to either...

On Wed, Nov 29, 2017 at 6:50 PM, enh <enh at google.com> wrote:
> let me know if you'd rather have the #ifdef in portability.h --- i'm
> not sure whether your aim is to have all #ifdefery in there, or
> whether something should be needed in two places first.
>
> (the other alternative would be to always try both locations, but that
> seemed even worse.)
>
> On Wed, Nov 29, 2017 at 6:49 PM, enh <enh at google.com> wrote:
>> By reason of historical accident, Android uses "/dev/block/loopX" rather
>> than "/dev/loopX" (though the control file is in the usual place). Work
>> around that.
>> ---
>>  toys/other/losetup.c | 8 +++++++-
>>  1 file changed, 7 insertions(+), 1 deletion(-)
>
>
>
> --
> Elliott Hughes - http://who/enh - http://jessies.org/~enh/
> Android native code/tools questions? Mail me/drop by/add me as a reviewer.



-- 
Elliott Hughes - http://who/enh - http://jessies.org/~enh/
Android native code/tools questions? Mail me/drop by/add me as a reviewer.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Fix-losetup-for-Android.patch
Type: text/x-patch
Size: 1037 bytes
Desc: not available
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20171129/97681f38/attachment-0003.bin>


More information about the Toybox mailing list