From owner-freebsd-stable@FreeBSD.ORG Tue May 10 06:21:08 2005 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C1B8616A4EF for ; Tue, 10 May 2005 06:21:08 +0000 (GMT) Received: from smtp803.mail.sc5.yahoo.com (smtp803.mail.sc5.yahoo.com [66.163.168.182]) by mx1.FreeBSD.org (Postfix) with SMTP id 892C843D3F for ; Tue, 10 May 2005 06:21:08 +0000 (GMT) (envelope-from noackjr@alumni.rice.edu) Received: from unknown (HELO optimator.noacks.org) (noacks@swbell.net@70.240.205.64 with login) by smtp803.mail.sc5.yahoo.com with SMTP; 10 May 2005 06:21:08 -0000 Received: from localhost (localhost [127.0.0.1]) by optimator.noacks.org (Postfix) with ESMTP id B55986125; Tue, 10 May 2005 01:21:06 -0500 (CDT) Received: from optimator.noacks.org ([127.0.0.1]) by localhost (optimator.noacks.org [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 34626-10; Tue, 10 May 2005 01:21:04 -0500 (CDT) Received: from compgeek.noacks.org (compgeek [192.168.1.10]) by optimator.noacks.org (Postfix) with ESMTP id AD40C60F3; Tue, 10 May 2005 01:21:04 -0500 (CDT) Received: from [127.0.0.1] (localhost [127.0.0.1]) by compgeek.noacks.org (8.13.3/8.13.3) with ESMTP id j4A6L3Rh002297; Tue, 10 May 2005 01:21:04 -0500 (CDT) (envelope-from noackjr@alumni.rice.edu) Message-ID: <428052CB.2000704@alumni.rice.edu> Date: Tue, 10 May 2005 01:20:59 -0500 From: Jonathan Noack User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050428) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Billy Newsom References: <4280353B.8050306@leadhill.net> <42803B66.3070200@alumni.rice.edu> <428044C2.80208@leadhill.net> In-Reply-To: <428044C2.80208@leadhill.net> X-Enigmail-Version: 0.91.0.0 OpenPGP: id=991D8195; url=http://www.noacks.org/cert/noackjr.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig190B1696B2CF57C806010699" X-Virus-Scanned: amavisd-new at noacks.org cc: freebsd-stable@freebsd.org Subject: Re: nfs bug & df: Can I lock up my kernel and overflow this buffer? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: noackjr@alumni.rice.edu List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 May 2005 06:21:08 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig190B1696B2CF57C806010699 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 05/10/05 00:21, Billy Newsom wrote: > Jonathan Noack wrote: > > On 05/09/05 23:14, Billy Newsom wrote: > > From the fstab(5) man page: > > "The fourth field, (fs_mntops), describes the mount options associated > > with the file system. It is formatted as a comma separated list of > > options. It contains at least the type of mount (see fs_type below) > > plus any additional options appropriate to the file system type. See > > the options flag (-o) in the mount(8) page and the file system specific > > page, such as mount_nfs(8), for additional options that may be > specified." > > That is how I read the man page, too, long ago. But when I tried the -o > option on the commandline, I was unable to send mount all of the > mount_nfs commandline switches I needed. I either misunderstand the > mount -o option, or it doesn't work for all of the mount_nfs stuff I > tried to send it. > > In other words, the -o option seems to not like any of the many switches > understood by mount_nfs .... hence I seemed to be forced to use > mount_nfs directly. And that precludes using it in fstab. You are not restricted to only the -o option with fstab. The native mount_nfs switches work fine with it. This is stated in the second half of the last sentence I quoted above (note the "and"). Thus, the same options you use on the command line work with fstab. > > What trouble did you have with fstab? You can specify as many options > > as you want as long as you separate them with commas (I think putting a > > '=' between an option and its value is also necessary, although I don't > > know for sure). For you it should look like this (assuming you want > > read/write): > > > > dell:/nfs /dellbak nfs rw,-s,-x=2,-T 0 0 > > I don't know. Since mount wasn't able to understand those switches on > the commandline, I never tried anything in fstab, for the sake of not > causing any problems with my boot. The handbook page on nfs has a few simple examples toward the bottom (first hit on a Google search for "freebsd nfs fstab"): http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/network-nfs.html To test the line I gave you just add it to /etc/fstab and see if "mount /dellbak" works. It'll give you an error message if something is wrong. For example, the options specified work perfectly for me and the mount command completes successfully. Adding a "-z" to it gives an illegal option error. # grep shared /etc/fstab server:/shared /mnt nfs rw,-s,-x=2,-T 0 0 # mount /mnt # umount /mnt # grep shared /etc/fstab server:/shared /mnt nfs rw,-s,-x=2,-T,-z 0 0 # mount /mnt mount_nfs: illegal option -- z usage: mount_nfs [-23bcdiLlNPsTU] [-a maxreadahead] [-D deadthresh] [-g maxgroups] [-I readdirsize] [-o options] [-R retrycnt] [-r readsize] [-t timeout] [-w writesize] [-x retrans] rhost:path node > Anyone tried that sort of stuff in fstab? I'm a little skeptical. I use "that sort of stuff" and have for a long time. Here's one of my fstab lines: optimator:/usr/home /usr/home nfs rw,-3,-T,-r=32768,-w=32768 0 0 It's obvious you don't believe me but why are you unwilling to try it yourself? -- Jonathan Noack | noackjr@alumni.rice.edu | OpenPGP: 0x991D8195 --------------enig190B1696B2CF57C806010699 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCgFLPUFz01pkdgZURAtitAJ9LWxFisUzFwxtIECR9ComJN6sKmgCcCGPW UgwqLbt2dzhlv4jZYTc+Fo8= =PGWs -----END PGP SIGNATURE----- --------------enig190B1696B2CF57C806010699--