[dovecot-cvs] dovecot/src/lib-index mail-custom-flags.c,1.18,1.19 mail-index-compress.c,1.24,1.25 mail-index-data.c,1.37,1.38 mail-index-util.c,1.22,1.23 mail-modifylog.c,1.43,1.44 mail-tree.c,1.15,1.16

cras at procontrol.fi cras at procontrol.fi
Sun Mar 30 16:48:39 EEST 2003


Update of /home/cvs/dovecot/src/lib-index
In directory danu:/tmp/cvs-serv27195/lib-index

Modified Files:
	mail-custom-flags.c mail-index-compress.c mail-index-data.c 
	mail-index-util.c mail-modifylog.c mail-tree.c 
Log Message:
Handle EDQUOT errno as "not enough disk space" like ENOSPC.



Index: mail-custom-flags.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-custom-flags.c,v
retrieving revision 1.18
retrieving revision 1.19
diff -u -d -r1.18 -r1.19
--- mail-custom-flags.c	23 Feb 2003 21:06:57 -0000	1.18
+++ mail-custom-flags.c	30 Mar 2003 12:48:37 -0000	1.19
@@ -45,7 +45,7 @@
 {
 	i_assert(function != NULL);
 
-	if (errno == ENOSPC) {
+	if (ENOSPACE(errno)) {
 		mcf->index->nodiskspace = TRUE;
 		return FALSE;
 	}

Index: mail-index-compress.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-compress.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- mail-index-compress.c	23 Feb 2003 21:06:57 -0000	1.24
+++ mail-index-compress.c	30 Mar 2003 12:48:37 -0000	1.25
@@ -226,7 +226,7 @@
 
 		datapath = t_strconcat(index->filepath, DATA_FILE_PREFIX, NULL);
 		if (rename(temppath, datapath) < 0) {
-			if (errno == ENOSPC)
+			if (ENOSPACE(errno))
 				index->nodiskspace = TRUE;
 
 			index_set_error(index, "rename(%s, %s) failed: %m",

Index: mail-index-data.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-data.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -d -r1.37 -r1.38
--- mail-index-data.c	23 Feb 2003 21:06:57 -0000	1.37
+++ mail-index-data.c	30 Mar 2003 12:48:37 -0000	1.38
@@ -66,7 +66,7 @@
 {
 	i_assert(function != NULL);
 
-	if (errno == ENOSPC) {
+	if (ENOSPACE(errno)) {
 		data->index->nodiskspace = TRUE;
 		return FALSE;
 	}

Index: mail-index-util.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-index-util.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -d -r1.22 -r1.23
--- mail-index-util.c	21 Mar 2003 06:47:05 -0000	1.22
+++ mail-index-util.c	30 Mar 2003 12:48:37 -0000	1.23
@@ -52,7 +52,7 @@
 {
 	i_assert(function != NULL);
 
-	if (errno == ENOSPC) {
+	if (ENOSPACE(errno)) {
 		index->nodiskspace = TRUE;
 		return FALSE;
 	}
@@ -68,7 +68,7 @@
 	i_assert(filepath != NULL);
 	i_assert(function != NULL);
 
-	if (errno == ENOSPC) {
+	if (ENOSPACE(errno)) {
 		index->nodiskspace = TRUE;
 		return FALSE;
 	}
@@ -109,7 +109,7 @@
 	   can't be helped. */
 	fd = open(*path, O_RDWR | O_CREAT | O_EXCL, 0660);
 	if (fd == -1) {
-		if (errno == ENOSPC)
+		if (ENOSPACE(errno))
 			index->nodiskspace = TRUE;
 		else {
 			index_set_error(index, "Can't create temp index %s: %m",

Index: mail-modifylog.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-modifylog.c,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -d -r1.43 -r1.44
--- mail-modifylog.c	23 Feb 2003 21:06:57 -0000	1.43
+++ mail-modifylog.c	30 Mar 2003 12:48:37 -0000	1.44
@@ -72,7 +72,7 @@
 {
 	i_assert(function != NULL);
 
-	if (errno == ENOSPC) {
+	if (ENOSPACE(errno)) {
 		file->log->index->nodiskspace = TRUE;
 		return FALSE;
 	}

Index: mail-tree.c
===================================================================
RCS file: /home/cvs/dovecot/src/lib-index/mail-tree.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- mail-tree.c	23 Feb 2003 21:06:57 -0000	1.15
+++ mail-tree.c	30 Mar 2003 12:48:37 -0000	1.16
@@ -19,7 +19,7 @@
 {
 	i_assert(function != NULL);
 
-	if (errno == ENOSPC) {
+	if (ENOSPACE(errno)) {
 		tree->index->nodiskspace = TRUE;
 		return FALSE;
 	}




More information about the dovecot-cvs mailing list