Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jun 2002 12:40:04 -0700 (PDT)
From:      "Jin Guojun[DSD]" <j_guojun@lbl.gov>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/39896: netmask 0xffffff00 no longer works in /etc/exports
Message-ID:  <200206271940.g5RJe4lR008161@freefall.freebsd.org>

index | next in thread | raw e-mail

The following reply was made to PR bin/39896; it has been noted by GNATS.

From: "Jin Guojun[DSD]" <j_guojun@lbl.gov>
To: cjclark@alum.mit.edu
Cc: FreeBSD-gnats-submit@FreeBSD.ORG
Subject: Re: bin/39896: netmask 0xffffff00 no longer works in /etc/exports
Date: Thu, 27 Jun 2002 12:33:19 -0700

 "Crist J. Clark" wrote:
 > 
 > On Thu, Jun 27, 2002 at 11:21:15AM -0700, Jin Guojun[DSD] wrote:
 > [snip]
 > 
 > OK, I _can_ reproduce this. There is something really, really wack
 > going on. This is actually the issue I thought you were refering to
 > when I first read your PR.
 > 
 > Your error is here,
 > 
 > > eubie# echo "/data -network 131.243.2 -mask 255.255.255.0" > /etc/exports
 >                                        ^
 > As I understand inet_network(3), you are refering to the network,
 > 
 >   131.243.0.2
 > 
 > And if you change that to,
 > 
 >   131.243.2.0
 > 
 > Everything in all of your examples should work fine. This should be
 > trivial to do in your scripting, so I think you have the correction you
 > need for your problem.
 
 This is very minor to change if it s true. 
 But the problem is not quite like that.
 Showmount says both 131.243.2 and 131.243.2.0 are correct and the 
 problem persists:
 
 eubie# echo "/data -network 131.243.2.0  -mask 0xffffff00" > /etc/exports
 eubie# kill -HUP `cat /var/run/mountd.pid`
 eubie# showmount -e
 Exports list on localhost:
 /data                              131.243.2.0 
 eubie# mount eubie:/data /mnt
 eubie:/data: Permission denied
 ^C
 eubie# echo "/data -network 131.243.2 -mask 0xffffff00" > /etc/exports
 eubie# kill -HUP `cat /var/run/mountd.pid`
 eubie# showmount -e
 Exports list on localhost:
 /data                              131.243.2.0 
 eubie# mount eubie:/data /mnt
 eubie:/data: Permission denied
 ^C
 
 I will try reinstall it without X or other packages. 
 It seems to me when I first time tested 4.6 without X and other stuff,
 it had not problem; but do not remember what was exactly.
 
 More later.
 
 	-Jin

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message



help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200206271940.g5RJe4lR008161>