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:
parent
a83cbaccd0
commit
1d634e21b4
|
@ -191,12 +191,6 @@ finish:
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool mount_is_bind(struct mntent *me) {
|
|
||||||
assert(me);
|
|
||||||
|
|
||||||
return hasmntopt(me, "bind");
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool mount_is_network(struct mntent *me) {
|
static bool mount_is_network(struct mntent *me) {
|
||||||
assert(me);
|
assert(me);
|
||||||
|
|
||||||
|
@ -229,7 +223,7 @@ static int add_mount(const char *what, const char *where, struct mntent *me) {
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
isnetwork = mount_is_network(me);
|
isnetwork = mount_is_network(me);
|
||||||
isbind = mount_is_bind(me);
|
isbind = !!hasmntopt(me, "bind");
|
||||||
|
|
||||||
noauto = !!hasmntopt(me, "noauto");
|
noauto = !!hasmntopt(me, "noauto");
|
||||||
nofail = !!hasmntopt(me, "nofail");
|
nofail = !!hasmntopt(me, "nofail");
|
||||||
|
|
Loading…
Reference in New Issue