summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Nykryn <lnykryn@redhat.com>2015-03-30 14:42:02 +0200
committerLukas Nykryn <lnykryn@redhat.com>2015-04-01 12:16:53 +0200
commit11041c8488e956924870379a9203d7f1cac3b038 (patch)
treea2b8e81e6d4fac31222cba6afadc92d65d541627
parentc185834d77335d50ef0247c39d7e9dffc74707bd (diff)
mount: don't run quotaon only for network filesystems
If you have for example ext4 on iscsi devices it is possible to setup qoutas there. Unfortunately, because such fstab entry contains _netdev, systemd will not add dependency to quotaon.service.
-rw-r--r--src/core/mount.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/mount.c b/src/core/mount.c
index 1251c94608..1d7d9e0d58 100644
--- a/src/core/mount.c
+++ b/src/core/mount.c
@@ -102,7 +102,9 @@ static bool mount_is_auto(const MountParameters *p) {
static bool needs_quota(const MountParameters *p) {
assert(p);
- if (mount_is_network(p))
+ /* Quotas are not enabled on network filesystems,
+ * but we them, for example, on storages connected via iscsi */
+ if (p->fstype && fstype_is_network(p->fstype))
return false;
if (mount_is_bind(p))