From: <ta...@us...> - 2006-10-24 20:41:48
|
Revision: 3207 http://svn.sourceforge.net/gfarm/?rev=3207&view=rev Author: tatebe Date: 2006-10-24 13:41:43 -0700 (Tue, 24 Oct 2006) Log Message: ----------- (check_spool_directory): accept "no space left on device" in write(2) test Modified Paths: -------------- trunk/gfarm/server/gfsd/gfsd.c Modified: trunk/gfarm/server/gfsd/gfsd.c =================================================================== --- trunk/gfarm/server/gfsd/gfsd.c 2006-10-24 20:31:44 UTC (rev 3206) +++ trunk/gfarm/server/gfsd/gfsd.c 2006-10-24 20:41:43 UTC (rev 3207) @@ -2392,8 +2392,13 @@ if (fd == -1) accepting_fatal_errno("creat(2) test"); rv = write(fd, "X", 1); - if (rv == -1) - accepting_fatal_errno("write(2) test"); + if (rv == -1) { + /* accept "no space left on device" */ + if (errno == ENOSPC) + gflog_warning_errno("write(2) test"); + else + accepting_fatal_errno("write(2) test"); + } if (rv == 0) accepting_fatal("write(2) returned 0"); if (fsync(fd) == -1) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |