Re: df -l broken

2001-11-30 Thread Joerg Wunsch
As Maxime Henrion wrote: > > Seems to work. mount(8) has still the problem though: > > Great, I'll file a PR for it. Thanks for the feedback ! I can commit it if you want. > I fail to see why should ``mount -t local'' work. ISTR that it used to work, at least in the context of "mount -a -t

Re: df -l broken

2001-11-30 Thread Maxime Henrion
Joerg Wunsch wrote: > Maxime Henrion <[EMAIL PROTECTED]> wrote: > > > I looked at the code a bit more closely and you're entirely right. I > > think I figured out why my patch caused a core dump. Here is a more > > correct patch that should fix the problem without causing core dumps. > > Seems

Re: df -l broken

2001-11-29 Thread Joerg Wunsch
Maxime Henrion <[EMAIL PROTECTED]> wrote: > I looked at the code a bit more closely and you're entirely right. I > think I figured out why my patch caused a core dump. Here is a more > correct patch that should fix the problem without causing core dumps. Seems to work. mount(8) has still the

Re: df -l broken

2001-11-29 Thread Mikko Työläjärvi
On Fri, 30 Nov 2001, Maxime Henrion wrote: > Mikko Tyolajarvi wrote: [...] > > They don't have to be mounted, just loaded. E.g. if "nfs" > > shows up with "lsvfs", "df -l " will work, if not, it won't. > > (dunno about other network file systems). > [...] > > I looked at the code a bit more clos

Re: df -l broken

2001-11-29 Thread Maxime Henrion
Mikko Tyolajarvi wrote: > In local.freebsd.current you write: > > >On Mon, Nov 26, 2001 at 12:07:22AM +0100, Maxime Henrion wrote: > >> If my patch is exact, then the bug should manifest itself only if there > >> are no network filesystems mounted. Do you have any network fs mounted > >> on your

Re: df -l broken

2001-11-29 Thread Mikko Tyolajarvi
In local.freebsd.current you write: >On Mon, Nov 26, 2001 at 12:07:22AM +0100, Maxime Henrion wrote: >> If my patch is exact, then the bug should manifest itself only if there >> are no network filesystems mounted. Do you have any network fs mounted >> on your box ? >No networked filesystems he

Re: df -l broken

2001-11-27 Thread Joerg Wunsch
Maxime Henrion <[EMAIL PROTECTED]> wrote: > Could you please test the attached patch ? I did it in a hurry but > it may fix the problem. if (i > 0) *(--strptr) = NULL; free(listptr); return (str); df.c: 569 lines, 14158 characters uriah # make cc -

Re: df -l broken

2001-11-26 Thread Nathan Dorfman
On Mon, Nov 26, 2001 at 12:07:22AM +0100, Maxime Henrion wrote: > If my patch is exact, then the bug should manifest itself only if there > are no network filesystems mounted. Do you have any network fs mounted > on your box ? No networked filesystems here, and no problems: [341]nathan@bokonon:

Re: df -l broken

2001-11-26 Thread Paul van der Zwan
> Paul van der Zwan wrote: > > > > I noticed the -l option of the df command is broken. It is supposed to > > print df for local filesystems but on my system it prints nothing at all. > > I had a quick look at the code , as far as I can tell it uses sysctl to > > figure out the mounted filesyste

Re: df -l broken

2001-11-26 Thread NAKAMURA Kazushi
In my dual Pentium3/1GHz box: % uname -a FreeBSD mako.kobe1995.net 5.0-CURRENT-20010830-JPSNAP FreeBSD 5.0-CURRENT-20010830-JPSNAP #9: Sat Nov 3 17:05:25 JST 2001 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/KOBE5SMP i386 % df -l Filesystem 1K-blocks UsedAvail Capacity Mounted on /d

Re: df -l broken

2001-11-25 Thread Maxime Henrion
David Wolfskill wrote: > >Date: Sun, 25 Nov 2001 22:41:01 +0100 > >From: Paul van der Zwan <[EMAIL PROTECTED]> > > >I noticed the -l option of the df command is broken > > That differs from my experience: > > d141[1] df -l > Filesystem 1K-blocks UsedAvail Capacity Mounted on > /de

Re: df -l broken

2001-11-25 Thread Maxime Henrion
Paul van der Zwan wrote: > > I noticed the -l option of the df command is broken. It is supposed to > print df for local filesystems but on my system it prints nothing at all. > I had a quick look at the code , as far as I can tell it uses sysctl to > figure out the mounted filesystems but think

Re: df -l broken

2001-11-25 Thread David Wolfskill
>Date: Sun, 25 Nov 2001 22:41:01 +0100 >From: Paul van der Zwan <[EMAIL PROTECTED]> >I noticed the -l option of the df command is broken That differs from my experience: d141[1] df -l Filesystem 1K-blocks UsedAvail Capacity Mounted on /dev/ad0s3a158783939195216264%

Re: df -l broken

2001-11-25 Thread Joerg Wunsch
Paul van der Zwan <[EMAIL PROTECTED]> wrote: > I noticed the -l option of the df command is broken. Same for "mount -a -t local". I noticed this has been broken for more than a year now, maybe two. I've always been too lazy to investigate closer. IIRC, the last FreeBSD versions where it actua

df -l broken

2001-11-25 Thread Paul van der Zwan
I noticed the -l option of the df command is broken. It is supposed to print df for local filesystems but on my system it prints nothing at all. I had a quick look at the code , as far as I can tell it uses sysctl to figure out the mounted filesystems but thinks all of them are non-local and ign