chiark / gitweb /
mount: don't run quotaon only for network filesystems
authorLukas Nykryn <lnykryn@redhat.com>
Mon, 30 Mar 2015 12:42:02 +0000 (14:42 +0200)
committerLukas Nykryn <lnykryn@redhat.com>
Wed, 1 Apr 2015 10:16:53 +0000 (12:16 +0200)
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.

src/core/mount.c

index 1251c94608d6a678fc1f04a33a53a00a4f75363a..1d7d9e0d580a2ba786b6d7b79438f96286dc5183 100644 (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))