From owner-freebsd-stable Sat Jul 4 09:07:20 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id JAA13046 for freebsd-stable-outgoing; Sat, 4 Jul 1998 09:07:20 -0700 (PDT) (envelope-from owner-freebsd-stable@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.119.24.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA13022 for ; Sat, 4 Jul 1998 09:07:08 -0700 (PDT) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.8.7/8.8.7) with ESMTP id QAA01340; Sat, 4 Jul 1998 16:06:59 GMT Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id SAA03739; Sat, 4 Jul 1998 18:06:57 +0200 (MET DST) Message-ID: <19980704180656.03205@follo.net> Date: Sat, 4 Jul 1998 18:06:56 +0200 From: Eivind Eklund To: Hideki Yamamoto Cc: jkh@time.cdrom.com, mike@sentex.net, stable@FreeBSD.ORG Subject: Re: Release schedule for 2.2.7 References: <19980702164724.07060@follo.net> <199807041348.WAA18723@emerald.carrot.kansai.oki.co.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1i In-Reply-To: <199807041348.WAA18723@emerald.carrot.kansai.oki.co.jp>; from Hideki Yamamoto on Sat, Jul 04, 1998 at 10:48:23PM +0900 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, Jul 04, 1998 at 10:48:23PM +0900, Hideki Yamamoto wrote: > > Hi, > > Thank you for your good ideas and tips. > > > Not in 2.2 at this time, which is why I specifically didn't say that. :) > > Eivind> Simple - if __FreeBSD_version isn't available, it is 2.2 :-) > > Eivind> cannot be retrieved from the kernel (I believe it will > Eivind> even fail to compile in some circumstances), so getting it from there > Eivind> isn't an option. Then it would even be better (*shudder*) to rely on > Eivind> __FreeBSD__ (reader, please don't. Use __FreeBSD_version, and assume > Eivind> 2.2 if not available). > > I have a question. Is the technique available both kernel module > and the others? Yes. > I have ported msdosfs module in kernel and > mount_msdos command in sbin/i386. > > In mount_msdos source code, I think we can add the following > code to distinguish between two branches. > > --------------- > #include > > #if __FreeBSD_version > 300000 > printf(" This code is for -current branche\n"); > #else > printf(" This code is for -stable branche\n"); > #endif > --------------- This is correct. If you want to do this in the kernel, just replace with Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message