]> git.ipfire.org Git - thirdparty/util-linux.git/commit
loopdev: Implememt loopcxt_set_status()
authorStanislav Brabec <sbrabec@suse.cz>
Tue, 2 Aug 2016 17:57:56 +0000 (19:57 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 17 Aug 2016 10:49:06 +0000 (12:49 +0200)
commitbfd4e1f75898510f93779766688cc5086404c23b
tree9a0e5a7adc270bb9dd2bb06fdda8bd2ffd36823b
parent9a94b634a343e83bfa2a9d311074e3e520abdddd
loopdev: Implememt loopcxt_set_status()

Implement stand-alone loopcxt_set_status(). It allows manipulation with some
loop device parameters even if it is initialized.

Its function is limited by the kernel implementation, and only a small subset of
changes is allowed.

For more see linux/drivers/block/loop.c:loop_set_status()

Signed-off-by: Stanislav Brabec <sbrabec@suse.cz>
include/loopdev.h
lib/loopdev.c