]> git.ipfire.org Git - thirdparty/systemd.git/commit
loop-util: save the flag about if LOOP_CONFIGURE ioctl works or not in loop_configure()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 8 Sep 2022 08:01:45 +0000 (17:01 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 8 Sep 2022 19:31:10 +0000 (04:31 +0900)
commitbb273a5145977844a8cb0314b1a03c3361dd3ede
treea25206e2b7d5e8cf6c56a11c08d56c55b0b849be
parent54ba7daf23e7e4fe3564cf4ea1e0f7cdf99b2558
loop-util: save the flag about if LOOP_CONFIGURE ioctl works or not in loop_configure()

When LOOP_CONFIGURE fail, then it is not necessary to call it on any
later call of loop_configure(). Let's save the flag in a static variable
in the function.
src/shared/loop-util.c