changeset 9581:edc7da213d4c HEAD

quota-fs, Solaris: Don't try to open quotas file with NFS mounts.
author Timo Sirainen <tss@iki.fi>
date Fri, 11 Jun 2010 15:56:27 +0100
parents 0b0cb71aea03
children 4432650c0699
files src/plugins/quota/quota-fs.c
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/plugins/quota/quota-fs.c	Fri Jun 11 15:03:22 2010 +0100
+++ b/src/plugins/quota/quota-fs.c	Fri Jun 11 15:56:27 2010 +0100
@@ -209,6 +209,11 @@
 	unsigned int i, count;
 
 #ifdef FS_QUOTA_SOLARIS
+#ifdef HAVE_RQUOTA
+	if (strcmp(mount->type, "nfs") == 0) {
+		/* using rquota for this mount */
+	} else
+#endif
 	if (mount->path == NULL) {
 		mount->path = i_strconcat(mount->mount_path, "/quotas", NULL);
 		mount->fd = open(mount->path, O_RDONLY);