mount,losetup: use /dev/loop-control is it exists
authorDenys Vlasenko <vda.linux@googlemail.com>
Sun, 9 Jun 2019 21:20:49 +0000 (23:20 +0200)
committerDenys Vlasenko <vda.linux@googlemail.com>
Sun, 9 Jun 2019 21:20:49 +0000 (23:20 +0200)
commit3b69ba799fd302a781f2ec760909f340e3b90236
tree37f2545a39600dcbc45a65903ef8b0ca7679a5d6
parent7b6d4f50c97b4f375687e8216313b10598b44b49
mount,losetup: use /dev/loop-control is it exists

function                                             old     new   delta
get_free_loop                                          -      58     +58
set_loop                                             597     649     +52
losetup_main                                         482     476      -6
------------------------------------------------------------------------------
(add/remove: 1/0 grow/shrink: 1/1 up/down: 110/-6)            Total: 104 bytes

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
include/libbb.h
libbb/loop.c
util-linux/losetup.c