From owner-freebsd-fs Mon Jan 25 06:05:08 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA18441 for freebsd-fs-outgoing; Mon, 25 Jan 1999 06:05:08 -0800 (PST) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from baerenklau.de.freebsd.org (baerenklau.de.freebsd.org [195.185.195.14]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA18436; Mon, 25 Jan 1999 06:05:06 -0800 (PST) (envelope-from w@panke.de.freebsd.org) Received: (from uucp@localhost) by baerenklau.de.freebsd.org (8.8.8/8.8.8) with UUCP id PAA26201; Mon, 25 Jan 1999 15:01:05 +0100 (CET) (envelope-from w@panke.de.freebsd.org) Received: (from w@localhost) by campa.panke.de.freebsd.org (8.8.8/8.8.8) id OAA01552; Mon, 25 Jan 1999 14:13:46 +0100 (MET) (envelope-from w) Message-ID: <19990125141345.A1545@panke.de.freebsd.org> Date: Mon, 25 Jan 1999 14:13:45 +0100 From: Wolfram Schneider To: lists@gal.netlab.sk, questions@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG Subject: Re: Need non-case sensitive fs References: <001c01be42b5$f433c5a0$231da8c3@gericom-tps.tps.sk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.1i In-Reply-To: <001c01be42b5$f433c5a0$231da8c3@gericom-tps.tps.sk>; from Tomas TPS Ulej on Mon, Jan 18, 1999 at 08:41:25AM +0100 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On 1999-01-18 08:41:25 +0100, Tomas TPS Ulej wrote: > We are ISP running FreeBSD as ftp & email server. Now we want move most of > our webs to apache + fp from our WIN NT4 Server. Problem is that our > customers have their pages deisgned for WINDOWS Platform. I need something > like non case sensitive filesystem . I need implementation for ufs ') which > will work as this scheme... > > Funcion Read "DeMOFile.jpg" reads "DEMOFILE.jpg". So implementation like > DOS/WINDOWS OS have. Upcase equal Downcase. Any ideas? [shudder:] put the customers files on a MSDOS filesystem ... See newfs_msdos(8), mount_msdos(8) how to do this on FreeBSD. -- Wolfram Schneider http://freebsd.org/~w/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Mon Jan 25 07:53:46 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA00583 for freebsd-fs-outgoing; Mon, 25 Jan 1999 07:53:46 -0800 (PST) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA00575 for ; Mon, 25 Jan 1999 07:53:39 -0800 (PST) (envelope-from dcs@newsguy.com) Received: from newsguy.com by peach.ocn.ne.jp (8.9.1a/OCN) id AAA26708; Tue, 26 Jan 1999 00:53:09 +0900 (JST) Message-ID: <36AC92F0.F0A0812@newsguy.com> Date: Tue, 26 Jan 1999 00:51:12 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.5 [en] (Win98; I) X-Accept-Language: pt-BR,ja MIME-Version: 1.0 To: Wolfram Schneider CC: lists@gal.netlab.sk, freebsd-fs@FreeBSD.ORG Subject: Re: Need non-case sensitive fs References: <001c01be42b5$f433c5a0$231da8c3@gericom-tps.tps.sk> <19990125141345.A1545@panke.de.freebsd.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Wolfram Schneider wrote: > > On 1999-01-18 08:41:25 +0100, Tomas TPS Ulej wrote: > > We are ISP running FreeBSD as ftp & email server. Now we want move most of > > our webs to apache + fp from our WIN NT4 Server. Problem is that our > > customers have their pages deisgned for WINDOWS Platform. I need something > > like non case sensitive filesystem . I need implementation for ufs ') which > > will work as this scheme... > > > > Funcion Read "DeMOFile.jpg" reads "DEMOFILE.jpg". So implementation like > > DOS/WINDOWS OS have. Upcase equal Downcase. Any ideas? > > [shudder:] put the customers files on a MSDOS filesystem ... > > See newfs_msdos(8), mount_msdos(8) how to do this on FreeBSD. Say, isn't that a perfect example of where a lightweight fs layer can come into use? Is there *any* progress being made into making stackable fs support? -- Daniel C. Sobral (8-DCS) dcs@newsguy.com If you sell your soul to the Devil and all you get is an MCSE from it, you haven't gotten market rate. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Mon Jan 25 08:00:10 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id IAA01534 for freebsd-fs-outgoing; Mon, 25 Jan 1999 08:00:10 -0800 (PST) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from akat.civ.cvut.cz (akat.civ.cvut.cz [147.32.235.105]) by hub.freebsd.org (8.8.8/8.8.8) with SMTP id IAA01528; Mon, 25 Jan 1999 08:00:05 -0800 (PST) (envelope-from pechy@hp735.cvut.cz) Received: from localhost (pechy@localhost) by akat.civ.cvut.cz (950413.SGI.8.6.12/950213.SGI.AUTOCF) via ESMTP id RAA00709; Mon, 25 Jan 1999 17:01:25 +0100 Date: Mon, 25 Jan 1999 17:01:25 +0100 From: Jan Pechanec X-Sender: pechy@akat.civ.cvut.cz To: Wolfram Schneider cc: lists@gal.netlab.sk, questions@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG Subject: Re: Need non-case sensitive fs In-Reply-To: <19990125141345.A1545@panke.de.freebsd.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 25 Jan 1999, Wolfram Schneider wrote: >On 1999-01-18 08:41:25 +0100, Tomas TPS Ulej wrote: >> We are ISP running FreeBSD as ftp & email server. Now we want move most of >> our webs to apache + fp from our WIN NT4 Server. Problem is that our >> customers have their pages deisgned for WINDOWS Platform. I need something >> like non case sensitive filesystem . I need implementation for ufs ') which >> will work as this scheme... >> >> Funcion Read "DeMOFile.jpg" reads "DEMOFILE.jpg". So implementation like >> DOS/WINDOWS OS have. Upcase equal Downcase. Any ideas? > >[shudder:] put the customers files on a MSDOS filesystem ... > >See newfs_msdos(8), mount_msdos(8) how to do this on FreeBSD. It should'n work. You can access names in the form that is printed with 'ls' only, I think. To solve the problem, I think the best solution would be to use stackable layering. This is a problem that somebody could already solved (search for heidemann and UCLA), if not and you have somebody that can program in C, let him add some code to the null layer template (see mount_null). One hundred lines of code, I estimate. Jan Pechanec. -- ---------------------------------------------------------------------- Jan PECHANEC, Computing center, Czech Technical University ------------ Zikova 4, Praha 6, 166 35, Czech Republic tel: +420 2 2435 2969 | email: pechy@hp735.cvut.cz fax: +420 2 24310271 | http://akat.civ.cvut.cz/pechy ---------------------------------------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Tue Jan 26 01:54:35 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA07274 for freebsd-fs-outgoing; Tue, 26 Jan 1999 01:54:35 -0800 (PST) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA07266 for ; Tue, 26 Jan 1999 01:54:33 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.1a/8.9.1) with ESMTP id KAA28979; Tue, 26 Jan 1999 10:54:29 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id KAA06048; Tue, 26 Jan 1999 10:54:22 +0100 (MET) Date: Tue, 26 Jan 1999 10:54:22 +0100 From: Eivind Eklund To: "Daniel C. Sobral" Cc: freebsd-fs@FreeBSD.ORG Subject: Re: Need non-case sensitive fs Message-ID: <19990126105421.I382@bitbox.follo.net> References: <001c01be42b5$f433c5a0$231da8c3@gericom-tps.tps.sk> <19990125141345.A1545@panke.de.freebsd.org> <36AC92F0.F0A0812@newsguy.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: <36AC92F0.F0A0812@newsguy.com>; from Daniel C. Sobral on Tue, Jan 26, 1999 at 12:51:12AM +0900 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > On 1999-01-18 08:41:25 +0100, Tomas TPS Ulej wrote: > > > We are ISP running FreeBSD as ftp & email server. Now we want move most of > > > our webs to apache + fp from our WIN NT4 Server. Problem is that our > > > customers have their pages deisgned for WINDOWS Platform. I need something > > > like non case sensitive filesystem . I need implementation for ufs ') which > > > will work as this scheme... > > > > > > Funcion Read "DeMOFile.jpg" reads "DEMOFILE.jpg". So implementation like > > > DOS/WINDOWS OS have. Upcase equal Downcase. Any ideas? [...] > Say, isn't that a perfect example of where a lightweight fs layer > can come into use? Yes. > Is there *any* progress being made into making stackable fs support? Yes. I'm working on it; however, it has taken more time than planned (my testbox setup got eaten by an as-of-yet unidentified bug in disklabel, and there are more locking problems than I'd anticipated) and has thus run into one of my known really-really-really busy periods. I'll be overloaded until mid-to-late february, but hope to be able to find _some_ time to work on it before that. Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Tue Jan 26 01:55:38 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA07388 for freebsd-fs-outgoing; Tue, 26 Jan 1999 01:55:38 -0800 (PST) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from ns1.yes.no (ns1.yes.no [195.204.136.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA07358; Tue, 26 Jan 1999 01:55:34 -0800 (PST) (envelope-from eivind@bitbox.follo.net) Received: from bitbox.follo.net (bitbox.follo.net [195.204.143.218]) by ns1.yes.no (8.9.1a/8.9.1) with ESMTP id KAA28993; Tue, 26 Jan 1999 10:55:32 +0100 (CET) Received: (from eivind@localhost) by bitbox.follo.net (8.8.8/8.8.6) id KAA06063; Tue, 26 Jan 1999 10:55:31 +0100 (MET) Date: Tue, 26 Jan 1999 10:55:31 +0100 From: Eivind Eklund To: Jan Pechanec Cc: Wolfram Schneider , lists@gal.netlab.sk, questions@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG Subject: Re: Need non-case sensitive fs Message-ID: <19990126105531.J382@bitbox.follo.net> References: <19990125141345.A1545@panke.de.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.1i In-Reply-To: ; from Jan Pechanec on Mon, Jan 25, 1999 at 05:01:25PM +0100 Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, Jan 25, 1999 at 05:01:25PM +0100, Jan Pechanec wrote: > To solve the problem, I think the best solution would be to > use stackable layering. This is a problem that somebody could already > solved (search for heidemann and UCLA), if not and you have somebody > that can program in C, let him add some code to the null layer > template (see mount_null). One hundred lines of code, I estimate. nullfs does not work as of present. You can possibly get it to work by using tegge's patches as a brute-force interrim solution; I'm working on getting stacking layers to work properly again. Eivind. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Tue Jan 26 03:36:36 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id DAA19011 for freebsd-fs-outgoing; Tue, 26 Jan 1999 03:36:36 -0800 (PST) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id DAA19002; Tue, 26 Jan 1999 03:36:33 -0800 (PST) (envelope-from dcs@newsguy.com) Received: from newsguy.com by peach.ocn.ne.jp (8.9.1a/OCN) id UAA29348; Tue, 26 Jan 1999 20:36:27 +0900 (JST) Message-ID: <36ADA340.D3AA56F@newsguy.com> Date: Tue, 26 Jan 1999 20:13:04 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.5 [en] (Win98; I) X-Accept-Language: pt-BR,ja MIME-Version: 1.0 To: Alfred Perlstein CC: hackers@FreeBSD.ORG, fs@FreeBSD.ORG Subject: Re: pointer to info on stacking layers? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Alfred Perlstein wrote: > > Does anyone have any URLs to information on how the stacking code (for > file systems) is done currently in FreeBSD? > > I see templates of pointers to functions for vnode operations, but i was > hoping there was a little more out there to help. 1) This is a question for freebsd-fs, of course. 2) Stacking code "isn't" at the moment. That is one thing one have to keep in mind while browsing it: it is *not* working. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com If you sell your soul to the Devil and all you get is an MCSE from it, you haven't gotten market rate. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Tue Jan 26 06:40:27 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA11702 for freebsd-fs-outgoing; Tue, 26 Jan 1999 06:40:27 -0800 (PST) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from cs.columbia.edu (cs.columbia.edu [128.59.16.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA11549; Tue, 26 Jan 1999 06:39:56 -0800 (PST) (envelope-from ezk@shekel.mcl.cs.columbia.edu) Received: from shekel.mcl.cs.columbia.edu (shekel.mcl.cs.columbia.edu [128.59.18.15]) by cs.columbia.edu (8.9.1/8.9.1) with ESMTP id JAA11806; Tue, 26 Jan 1999 09:39:37 -0500 (EST) Received: (from ezk@localhost) by shekel.mcl.cs.columbia.edu (8.9.1/8.9.1) id JAA04364; Tue, 26 Jan 1999 09:39:36 -0500 (EST) Date: Tue, 26 Jan 1999 09:39:36 -0500 (EST) Message-Id: <199901261439.JAA04364@shekel.mcl.cs.columbia.edu> X-Authentication-Warning: shekel.mcl.cs.columbia.edu: ezk set sender to ezk@shekel.mcl.cs.columbia.edu using -f From: Erez Zadok To: Eivind Eklund Cc: Jan Pechanec , Wolfram Schneider , lists@gal.netlab.sk, questions@FreeBSD.ORG, freebsd-isp@FreeBSD.ORG, freebsd-fs@FreeBSD.ORG Subject: Re: Need non-case sensitive fs In-reply-to: Your message of "Tue, 26 Jan 1999 10:55:31 +0100." <19990126105531.J382@bitbox.follo.net> Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <19990126105531.J382@bitbox.follo.net>, Eivind Eklund writes: > On Mon, Jan 25, 1999 at 05:01:25PM +0100, Jan Pechanec wrote: > > To solve the problem, I think the best solution would be to > > use stackable layering. This is a problem that somebody could already > > solved (search for heidemann and UCLA), if not and you have somebody > > that can program in C, let him add some code to the null layer > > template (see mount_null). One hundred lines of code, I estimate. > > nullfs does not work as of present. You can possibly get it to work by > using tegge's patches as a brute-force interrim solution; I'm working on > getting stacking layers to work properly again. Re: brute force, I've got a working nullfs and several f/s built on top of it. It circumvents the whole VM buffer-cache thing by using synchronous writes, and using read/write for putpage/getpage. It may be slower than what it should be, but in practice it was only a few % slower than an async implementation on linux (identical h/w of course). Until these big problems are formally resolved (yes I'm working on them too), users may wish to start implementing their favorite f/s based on my *working* implementation. Later on they can do whatever changes might be necessary to comply with a fixed stackable interface. I believe that doing a case-insensitive f/s using my template nullfs (which I call wrapfs) would be easy. You can get freebsd wrapfs software from: http://www.cs.columbia.edu/~ezk/research/software/ and a few papers that mention the freebsd port in http://www.cs.columbia.edu/~ezk/research/wip.html > Eivind. Eivind et al. I think there are already several people who are trying to do the same thing --- fix stacking support in freebsd. I would suggest that we all get together and do a mini-design that would be approved by the rest of the freebsd-fs community, and then embark on an implementation. I'm willing to help of course. Erez. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Tue Jan 26 20:10:23 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id UAA20913 for freebsd-fs-outgoing; Tue, 26 Jan 1999 20:10:23 -0800 (PST) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from peach.ocn.ne.jp (peach.ocn.ne.jp [210.145.254.87]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id UAA20892; Tue, 26 Jan 1999 20:10:16 -0800 (PST) (envelope-from dcs@newsguy.com) Received: from newsguy.com by peach.ocn.ne.jp (8.9.1a/OCN) id NAA23857; Wed, 27 Jan 1999 13:10:02 +0900 (JST) Message-ID: <36AE8A94.DEA266A2@newsguy.com> Date: Wed, 27 Jan 1999 12:40:04 +0900 From: "Daniel C. Sobral" X-Mailer: Mozilla 4.5 [en] (Win98; I) X-Accept-Language: pt-BR,ja MIME-Version: 1.0 To: Erez Zadok CC: Eivind Eklund , Jan Pechanec , Wolfram Schneider , freebsd-fs@FreeBSD.ORG Subject: Re: Need non-case sensitive fs References: <199901261439.JAA04364@shekel.mcl.cs.columbia.edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Transfer-Encoding: 7bit Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org (trimming the CCs a little...) Erez Zadok wrote: > > Eivind et al. I think there are already several people who are trying to do > the same thing --- fix stacking support in freebsd. I would suggest that we > all get together and do a mini-design that would be approved by the rest of > the freebsd-fs community, and then embark on an implementation. I'm willing > to help of course. Well, there are a lot of people working on this, on and off. There are even a few people with working implementations. The problem is getting fixes on the tree. Right now, though, it seems to me that the best alternative is working with Dillon, to ensure *his* fixes are acceptable to "us" (meaning, people who want to develop fs). I think we have more chances of seeing something being committed with him that we have had in years. -- Daniel C. Sobral (8-DCS) dcs@newsguy.com If you sell your soul to the Devil and all you get is an MCSE from it, you haven't gotten market rate. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Thu Jan 28 11:48:08 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA01872 for freebsd-fs-outgoing; Thu, 28 Jan 1999 11:48:08 -0800 (PST) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from cs.columbia.edu (cs.columbia.edu [128.59.16.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA01739 for ; Thu, 28 Jan 1999 11:47:47 -0800 (PST) (envelope-from ezk@shekel.mcl.cs.columbia.edu) Received: from shekel.mcl.cs.columbia.edu (shekel.mcl.cs.columbia.edu [128.59.18.15]) by cs.columbia.edu (8.9.1/8.9.1) with ESMTP id OAA04784 for ; Thu, 28 Jan 1999 14:47:40 -0500 (EST) Received: (from ezk@localhost) by shekel.mcl.cs.columbia.edu (8.9.1/8.9.1) id OAA28864; Thu, 28 Jan 1999 14:47:32 -0500 (EST) Date: Thu, 28 Jan 1999 14:47:32 -0500 (EST) Message-Id: <199901281947.OAA28864@shekel.mcl.cs.columbia.edu> X-Authentication-Warning: shekel.mcl.cs.columbia.edu: ezk set sender to ezk@shekel.mcl.cs.columbia.edu using -f From: Erez Zadok To: freebsd-fs@FreeBSD.ORG Subject: bug/feature submission questions Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I'm about to submit a few patches to freebsd-fs, and I have a few questions before I do so. I read the FAQ section "For serious FreeBSD hackers only" and followed the instructions there, but there are some things left unanswered. My experience with different maintainers is that there are specific preferences that maintainers have for submitting patches and fixes, so I'd like to be as compliant as possible. 1. What parts of the build process do I really need the 'vn' pseudo-device for? If all I want is to build a few user apps and a kernel, but not a boot image, do I need the 'vn' interface? 2. How do you want diffs to ChangeLog file(s)? I couldn't find general purpose ChangeLog files to update in the src/sys CVS tree. So where do I document my changes and how do I submit them. 3. If I'm submitting a feature enhancement source patch, should I use send-pr, or use send-pr only for bugs and their fixes. Thanks, Erez. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Thu Jan 28 15:47:00 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA09578 for freebsd-fs-outgoing; Thu, 28 Jan 1999 15:47:00 -0800 (PST) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from cs.columbia.edu (cs.columbia.edu [128.59.16.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA09562 for ; Thu, 28 Jan 1999 15:46:50 -0800 (PST) (envelope-from ezk@shekel.mcl.cs.columbia.edu) Received: from shekel.mcl.cs.columbia.edu (shekel.mcl.cs.columbia.edu [128.59.18.15]) by cs.columbia.edu (8.9.1/8.9.1) with ESMTP id SAA27072 for ; Thu, 28 Jan 1999 18:46:46 -0500 (EST) Received: (from ezk@localhost) by shekel.mcl.cs.columbia.edu (8.9.1/8.9.1) id SAA09690; Thu, 28 Jan 1999 18:46:44 -0500 (EST) Date: Thu, 28 Jan 1999 18:46:44 -0500 (EST) Message-Id: <199901282346.SAA09690@shekel.mcl.cs.columbia.edu> X-Authentication-Warning: shekel.mcl.cs.columbia.edu: ezk set sender to ezk@shekel.mcl.cs.columbia.edu using -f From: Erez Zadok To: freebsd-fs@FreeBSD.ORG Subject: patches to support "ignore" mount flag Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org [This was send-pr'ed as well.] Most modern OSs have the ability to flag certain mounts as ones to be ignored by default by the df(1) program. This is used mostly to avoid stat()-ing entries that do not represent "real" disk mount points (such as those made by an automounter such as amd.) It is also useful not to have to stat() these entries because it takes longer to report them than for other file systems, being that these mount points are served by a user-level file server and resulting in several context switches. Worse, if the automounter is down unexpectedly, a causal df(1) will hang in an interruptible way. Finally, amd normally has nothing to report for its own mount point, so seeing output like: Filesystem 1K-blocks Used Avail Capacity Mounted on pid204@ape:/proj 0 0 0 100% /proj only clutters the rest of the listing. The patch below adds a new flag MNT_IGNORE to the system, and tells the kernel to report it back to a statfs() call. Then /bin/df is modified so that by default it does not list any entries with the MNT_IGNORE flag on, unless df -a is used. This is comparable behavior to the df program elsewhere: Solaris/SunOS, linux, GNU df, and more. With this patch in place, am-utils is able to automatically detect the existence of the MNT_IGNORE flag during the configure run, and use it at run-time as it does with other OSs. Erez. ############################################################################## Index: src/bin/df/df.1 =================================================================== RCS file: /proj/bank/fist/freebsd/cvsroot/src/bin/df/df.1,v retrieving revision 1.13 diff -c -r1.13 df.1 *** df.1 1998/05/13 07:56:58 1.13 --- df.1 1999/01/27 19:46:46 *************** *** 40,46 **** .Nd display free disk space .Sh SYNOPSIS .Nm df ! .Op Fl ikn .Op Fl t Ar type .Op Ar file | Ar filesystem ... .Sh DESCRIPTION --- 40,46 ---- .Nd display free disk space .Sh SYNOPSIS .Nm df ! .Op Fl aikn .Op Fl t Ar type .Op Ar file | Ar filesystem ... .Sh DESCRIPTION *************** *** 59,64 **** --- 59,67 ---- .Pp The following options are available: .Bl -tag -width Ds + .It Fl a + Show all mount points, including those that were mounted with the MNT_IGNORE + flag. .It Fl i Include statistics on the number of free inodes. .It Fl k Index: src/bin/df/df.c =================================================================== RCS file: /proj/bank/fist/freebsd/cvsroot/src/bin/df/df.c,v retrieving revision 1.20 diff -c -r1.20 df.c *** df.c 1998/12/16 05:29:09 1.20 --- df.c 1999/01/27 19:46:37 *************** *** 73,79 **** int ufs_df __P((char *, int)); void usage __P((void)); ! int iflag, nflag; struct ufs_args mdev; int --- 73,79 ---- int ufs_df __P((char *, int)); void usage __P((void)); ! int aflag = 0, iflag, nflag; struct ufs_args mdev; int *************** *** 88,95 **** char *mntpt, *mntpath, **vfslist; vfslist = NULL; ! while ((ch = getopt(argc, argv, "iknt:")) != -1) switch (ch) { case 'i': iflag = 1; break; --- 88,98 ---- char *mntpt, *mntpath, **vfslist; vfslist = NULL; ! while ((ch = getopt(argc, argv, "aiknt:")) != -1) switch (ch) { + case 'a': + aflag = 1; + break; case 'i': iflag = 1; break; *************** *** 129,137 **** if (width > maxwidth) maxwidth = width; } } - for (i = 0; i < mntsize; i++) - prtstat(&mntbuf[i], maxwidth); exit(rv); } --- 132,142 ---- if (width > maxwidth) maxwidth = width; } + } + for (i = 0; i < mntsize; i++) { + if (aflag || (mntbuf[i].f_flags & MNT_IGNORE) == 0) + prtstat(&mntbuf[i], maxwidth); } exit(rv); } *************** *** 377,382 **** usage() { (void)fprintf(stderr, ! "usage: df [-ikn] [-t type] [file | filesystem ...]\n"); exit(1); } --- 382,387 ---- usage() { (void)fprintf(stderr, ! "usage: df [-aikn] [-t type] [file | filesystem ...]\n"); exit(1); } Index: src/sys/kern/vfs_syscalls.c =================================================================== RCS file: /proj/bank/fist/freebsd/cvsroot/src/sys/kern/vfs_syscalls.c,v retrieving revision 1.112 diff -c -r1.112 vfs_syscalls.c *** vfs_syscalls.c 1999/01/05 18:49:55 1.112 --- vfs_syscalls.c 1999/01/27 23:17:41 *************** *** 293,303 **** mp->mnt_kern_flag |= MNTK_WANTRDWR; mp->mnt_flag &=~ (MNT_NOSUID | MNT_NOEXEC | MNT_NODEV | MNT_SYNCHRONOUS | MNT_UNION | MNT_ASYNC | MNT_NOATIME | ! MNT_NOSYMFOLLOW | MNT_NOCLUSTERR | MNT_NOCLUSTERW | MNT_SUIDDIR); mp->mnt_flag |= SCARG(uap, flags) & (MNT_NOSUID | MNT_NOEXEC | MNT_NODEV | MNT_SYNCHRONOUS | MNT_UNION | MNT_ASYNC | MNT_FORCE | ! MNT_NOSYMFOLLOW | MNT_NOATIME | MNT_NOCLUSTERR | MNT_NOCLUSTERW | MNT_SUIDDIR); /* * Mount the filesystem. --- 293,303 ---- mp->mnt_kern_flag |= MNTK_WANTRDWR; mp->mnt_flag &=~ (MNT_NOSUID | MNT_NOEXEC | MNT_NODEV | MNT_SYNCHRONOUS | MNT_UNION | MNT_ASYNC | MNT_NOATIME | ! MNT_NOSYMFOLLOW | MNT_IGNORE | MNT_NOCLUSTERR | MNT_NOCLUSTERW | MNT_SUIDDIR); mp->mnt_flag |= SCARG(uap, flags) & (MNT_NOSUID | MNT_NOEXEC | MNT_NODEV | MNT_SYNCHRONOUS | MNT_UNION | MNT_ASYNC | MNT_FORCE | ! MNT_NOSYMFOLLOW | MNT_IGNORE | MNT_NOATIME | MNT_NOCLUSTERR | MNT_NOCLUSTERW | MNT_SUIDDIR); /* * Mount the filesystem. Index: src/sys/sys/mount.h =================================================================== RCS file: /proj/bank/fist/freebsd/cvsroot/src/sys/sys/mount.h,v retrieving revision 1.73 diff -c -r1.73 mount.h *** mount.h 1998/11/15 15:12:58 1.73 --- mount.h 1999/01/27 20:17:13 *************** *** 141,146 **** --- 141,147 ---- #define MNT_QUOTA 0x00002000 /* quotas are enabled on filesystem */ #define MNT_ROOTFS 0x00004000 /* identifies the root filesystem */ #define MNT_USER 0x00008000 /* mounted by a user */ + #define MNT_IGNORE 0x00800000 /* do not show entry in df */ /* * Mask of flags that are visible to statfs() *************** *** 154,160 **** MNT_DEFEXPORTED | MNT_EXPORTANON| MNT_EXKERB | \ MNT_LOCAL | MNT_USER | MNT_QUOTA | \ MNT_ROOTFS | MNT_NOATIME | MNT_NOCLUSTERR| \ ! MNT_NOCLUSTERW | MNT_SUIDDIR | MNT_SOFTDEP \ /* | MNT_EXPUBLIC */) /* * External filesystem command modifier flags. --- 155,162 ---- MNT_DEFEXPORTED | MNT_EXPORTANON| MNT_EXKERB | \ MNT_LOCAL | MNT_USER | MNT_QUOTA | \ MNT_ROOTFS | MNT_NOATIME | MNT_NOCLUSTERR| \ ! MNT_NOCLUSTERW | MNT_SUIDDIR | MNT_SOFTDEP | \ ! MNT_IGNORE \ /* | MNT_EXPUBLIC */) /* * External filesystem command modifier flags. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Thu Jan 28 15:50:25 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id PAA10269 for freebsd-fs-outgoing; Thu, 28 Jan 1999 15:50:25 -0800 (PST) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from sv01.cet.co.jp (sv01.cet.co.jp [210.171.56.2]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id PAA10210 for ; Thu, 28 Jan 1999 15:50:18 -0800 (PST) (envelope-from michaelh@cet.co.jp) Received: from localhost (michaelh@localhost) by sv01.cet.co.jp (8.8.8/8.8.8) with SMTP id XAA01708; Thu, 28 Jan 1999 23:49:49 GMT (envelope-from michaelh@cet.co.jp) Date: Fri, 29 Jan 1999 08:49:49 +0900 (JST) From: Michael Hancock To: Erez Zadok cc: freebsd-fs@FreeBSD.ORG Subject: Re: bug/feature submission questions In-Reply-To: <199901281947.OAA28864@shekel.mcl.cs.columbia.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, 28 Jan 1999, Erez Zadok wrote: > 2. How do you want diffs to ChangeLog file(s)? I couldn't find general > purpose ChangeLog files to update in the src/sys CVS tree. So where do I > document my changes and how do I submit them. Do a CVS diff in sys for related patches and create your own changelog. Do you have a web/ftp site so others can download it and review it? Regards, Mike To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message From owner-freebsd-fs Fri Jan 29 17:52:58 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id RAA23557 for freebsd-fs-outgoing; Fri, 29 Jan 1999 17:52:58 -0800 (PST) (envelope-from owner-freebsd-fs@FreeBSD.ORG) Received: from orion.ac.hmc.edu (Orion.AC.HMC.Edu [134.173.32.20]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id RAA23531 for ; Fri, 29 Jan 1999 17:52:50 -0800 (PST) (envelope-from brooks@one-eyed-alien.net) From: brooks@one-eyed-alien.net Received: from localhost (brdavis@localhost) by orion.ac.hmc.edu (8.8.8/8.8.8) with ESMTP id RAA27157 for ; Fri, 29 Jan 1999 17:52:48 -0800 (PST) X-Authentication-Warning: orion.ac.hmc.edu: brdavis owned process doing -bs Date: Fri, 29 Jan 1999 17:52:48 -0800 (PST) X-Sender: brdavis@orion.ac.hmc.edu To: freebsd-fs@FreeBSD.ORG Subject: FAT and OS/2 extended attribute files Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-fs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org I've been having trouble with a file in the root of a FAT file system I'm mounting on one of my FreeBSD 2.2.8-STABLE (as of a week ago) machines. When I type ls /winnt I see a file named "EA", but when I do an ls -l /winnt or try to open the file it's not there. I've traced the problem to a file named "EA DATA. SF" which a search of dejanews reports in an OS/2 extended attribute file. While I think I can get rid of it if I use a DOS boot disk and mabey an extra utility to unhide it and delete it, it would be nice if FreeBSD knew about this special case. The place it's actually causing trouble is trying to have amanda backup the drive via GNU tar, which sees the file, but, since it can't open it, fails. Thanks for your time and for making FreeBSD the great OS it is. -- Brooks Davis To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message