From owner-cvs-all Thu Dec 2 16:22:41 1999 Delivered-To: cvs-all@freebsd.org Received: from chez.McKusick.COM (chez.mckusick.com [209.31.233.177]) by hub.freebsd.org (Postfix) with ESMTP id D822214D80; Thu, 2 Dec 1999 16:22:33 -0800 (PST) (envelope-from mckusick@chez.McKusick.COM) Received: (from mckusick@localhost) by chez.McKusick.COM (8.9.2/8.9.2.Beta1) id QAA50864; Thu, 2 Dec 1999 16:21:20 -0800 (PST) Date: Thu, 2 Dec 1999 16:21:20 -0800 (PST) From: Kirk McKusick Message-Id: <199912030021.QAA50864@chez.McKusick.COM> To: gallatin@cs.duke.edu Subject: Re: cvs commit: src/sys/sys mount.h src/sys/kern vfs_bio.c src/sys/miscfs/specfs spec_vnops.c Cc: cvs-all@FreeBSD.org, cvs-committers@FreeBSD.org, mckusick@mckusick.com In-Reply-To: <14405.36736.721812.91039@grasshopper.cs.duke.edu> Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk From owner-cvs-committers@FreeBSD.org Wed Dec 1 13:27:14 1999 To: Kirk McKusick Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/sys mount.h src/sys/kern vfs_bio.c src/sys/miscfs/specfs spec_vnops.c In-Reply-To: <199912010209.SAA68538@freefall.freebsd.org> References: <199912010209.SAA68538@freefall.freebsd.org> Kirk McKusick writes: > out. The old mount binary is completely compatible, the only > reason to install a new mount is to get the read counts printed. Unless you are running on an alpha, where sizeof(long) == 8 ;-) There you are stuck: <...> pid 11 (fsck), uid 0: exited on signal 11 (core dumped) Segmentation fault - core dumped Unknown error in reboot <...> I'd like to see mount stay backwards/forwards compatible if possible. There are 2 ways to fix this -- adjust MNAMELEN down on alpha, or change the types of the added fields from longs to u_int32_t's. I have verified the following (adjusting MNAMELEN down to 72) works, should I go ahead & commit it? Index: mount.h =================================================================== RCS file: /home/ncvs/src/sys/sys/mount.h,v retrieving revision 1.85 diff -u -c -r1.85 mount.h cvs diff: conflicting specifications of output style *** mount.h 1999/12/01 02:09:19 1.85 --- mount.h 1999/12/01 21:07:37 *************** *** 67,73 **** --- 67,78 ---- */ #define MFSNAMELEN 16 /* length of fs type name, including null */ + #ifdef __i386__ #define MNAMELEN 80 /* length of buffer for returned name */ + #endif + #ifdef __alpha__ + #define MNAMELEN 72 /* length of buffer for returned name */ + #endif struct statfs { long f_spare2; /* placeholder */ Thanks! Drew ------------------------------------------------------------------------------ Andrew Gallatin, Sr Systems Programmer http://www.cs.duke.edu/~gallatin Duke University Email: gallatin@cs.duke.edu Department of Computer Science Phone: (919) 660-6590 Sorry for the slow response. Because of the huge mail volume on freebsd.org, I only rarely look at it. Better to send me mail at mckusick@mckusick.com if you need a quick response. I concur with your proposed change to maintain compatibility on the alpha. Sorry for the breakage. Obviously I don't pay enough attention to that architecture. Kirk McKusick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message