|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
From 76e5c9cfb1df3991f631cc7b593ab25a15f8d3eb Mon Sep 17 00:00:00 2001
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
From: Lukas Nykryn <lnykryn@redhat.com>
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
Date: Mon, 30 Mar 2015 14:42:02 +0200
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
Subject: [PATCH] mount: don't run quotaon only for network filesystems
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
If you have for example ext4 on iscsi devices it is possible to setup
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
qoutas there. Unfortunately, because such fstab entry contains _netdev,
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
systemd will not add dependency to quotaon.service.
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
(cherry picked from commit 11041c8488e956924870379a9203d7f1cac3b038)
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
---
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
src/core/mount.c | 4 +++-
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
diff --git a/src/core/mount.c b/src/core/mount.c
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
index 3ae0eb4621..3359220251 100644
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
--- a/src/core/mount.c
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
+++ b/src/core/mount.c
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
@@ -107,7 +107,9 @@ static bool mount_is_auto(const MountParameters *p) {
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
static bool needs_quota(const MountParameters *p) {
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
assert(p);
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
- if (mount_is_network(p))
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
+ /* Quotas are not enabled on network filesystems,
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
+ * but we them, for example, on storages connected via iscsi */
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
+ if (p->fstype && fstype_is_network(p->fstype))
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
return false;
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
|
|
Zbigniew Jędrzejewski-Szmek |
ef7b48 |
if (mount_is_bind(p))
|