From 85a973a7b997b66d009e46c8b4116c00e1182b3c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rainer=20Sch=C3=B6pf?= Date: Thu, 8 Jul 2004 05:52:38 +0000 Subject: [PATCH] afsd-bitch-about-xfs-not-about-dir-for-memcache-20040708 FIXES 5728 make afsd complain if cache partition is linux don't complain if no cachedir and we're -memcache. --- src/afsd/afsd.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index e403fc7..6954bd6 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -1049,6 +1049,8 @@ CheckCacheBaseDir(char *dir) } if (statfsbuf.f_type == 0x52654973) { /* REISERFS_SUPER_MAGIC */ return "cannot use reiserfs as cache partition"; + } else if (statfsbuf.f_type == 0x58465342) { /* XFS_SUPER_MAGIC */ + return "cannot use xfs as cache partition"; } } #endif @@ -1638,7 +1640,7 @@ mainproc(as, arock) sprintf(fullpn_VFile, "%s/", cacheBaseDir); vFilePtr = fullpn_VFile + strlen(fullpn_VFile); - if ((fsTypeMsg = CheckCacheBaseDir(cacheBaseDir))) { + if (!(cacheFlags & AFSCALL_INIT_MEMCACHE) && (fsTypeMsg = CheckCacheBaseDir(cacheBaseDir))) { printf("%s: WARNING: Cache dir check failed (%s)\n", rn, fsTypeMsg); } #if 0 -- 1.9.4