]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: append loop option when automatically create loopdev
authorKarel Zak <kzak@redhat.com>
Tue, 18 Sep 2012 09:40:44 +0000 (11:40 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 18 Sep 2012 09:40:44 +0000 (11:40 +0200)
commite8cd1819675bdda61d7edee6d951bf9f2b5d9091
tree5f9e084172f1bf6d405efcd95d1a9f9fd1e5709e
parent475c30d0614383692ed87e63b1889099757420c2
libmount: append loop option when automatically create loopdev

The loop option is optional, mount(8) is able to detect that the
source path is regular file (image) with known filesystem -- then a
loop device is automatically created. In this case we have to store
"loop" option to mtab on systems without autoclear loopdev flag.

Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/context_loopdev.c