[Toybox] [PATCH] Fix losetup for Android.

enh enh at google.com
Wed Nov 29 18:50:30 PST 2017


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.



More information about the Toybox mailing list