1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-26 03:22:00 +03:00

fstab-generator: drop mount_is_bind

Do the check in-line instead, as the function is now a bit pointless.
This commit is contained in:
Tom Gundersen 2012-11-27 00:52:01 +01:00
parent a83cbaccd0
commit 1d634e21b4

View File

@ -191,12 +191,6 @@ finish:
return r;
}
static bool mount_is_bind(struct mntent *me) {
assert(me);
return hasmntopt(me, "bind");
}
static bool mount_is_network(struct mntent *me) {
assert(me);
@ -229,7 +223,7 @@ static int add_mount(const char *what, const char *where, struct mntent *me) {
return 0;
isnetwork = mount_is_network(me);
isbind = mount_is_bind(me);
isbind = !!hasmntopt(me, "bind");
noauto = !!hasmntopt(me, "noauto");
nofail = !!hasmntopt(me, "nofail");