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.
This commit is contained in:
Lukas Nykryn
2015-04-01 12:16:53 +02:00
parent c185834d77
commit 11041c8488
+3 -1
View File
@@ -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))