Re: fss: Inappropriate ioctl for device (on dk*)

2012-07-28 Thread J. Hannken-Illjes
On Jul 28, 2012, at 5:51 PM, Edgar Fuß wrote: >> try attached patch for NetBSD-5 or -6. > Ah, thanks! I applied the first chunk (I already applied something > equivalent to the second myself) and now it works on wedges. > > Can this be pulled up to 6, please? Requested pullup to NetBSD-5 and N

Re: fss: Inappropriate ioctl for device (on dk*)

2012-07-28 Thread J. Hannken-Illjes
On Jul 28, 2012, at 5:34 PM, Edgar Fuß wrote: >> The `-c' flag just sets an (initialized) pointer to a function and has >> nothing to do with setting fss.fss_flags. > Not directly. But it moves memory. > >> Please ktrace without `-c'. > I already did that a week ago and posted to tech-userlevel.

Re: fss: Inappropriate ioctl for device (on dk*)

2012-07-28 Thread Edgar Fuß
> try attached patch for NetBSD-5 or -6. Ah, thanks! I applied the first chunk (I already applied something equivalent to the second myself) and now it works on wedges. Can this be pulled up to 6, please?

Re: fss: Inappropriate ioctl for device (on dk*)

2012-07-28 Thread Edgar Fuß
> The `-c' flag just sets an (initialized) pointer to a function and has > nothing to do with setting fss.fss_flags. Not directly. But it moves memory. > Please ktrace without `-c'. I already did that a week ago and posted to tech-userlevel. You clearly see a difference in the ioctl argument.

Re: fss: Inappropriate ioctl for device (on dk*)

2012-07-28 Thread J. Hannken-Illjes
On Jul 28, 2012, at 5:21 PM, Edgar Fuß wrote: >> For me (on -current/i386) `fssconfig -c' works > Since it's uninitialized memory, that may well be true. The `-c' flag just sets an (initialized) pointer to a function and has nothing to do with setting fss.fss_flags. Please ktrace without `-c'.

Re: fss: Inappropriate ioctl for device (on dk*)

2012-07-28 Thread Edgar Fuß
> For me (on -current/i386) `fssconfig -c' works Since it's uninitialized memory, that may well be true. > what error do you get? None. It fails silently (e.g. fssconfig -l says "not in use").

Re: fss: Inappropriate ioctl for device (on dk*)

2012-07-28 Thread J. Hannken-Illjes
On Jul 28, 2012, at 1:08 AM, Edgar Fuß wrote: > Now, additionally to fssconfig -c not working at all for me > (it does work without "-c"), it now looks that it doesn't work > on wedges: > That's on 6.0_BETA2/amd64. Should work on wedges for -current, try attached patch for NetBSD-5 or -6. For m

Re: fss: Inappropriate ioctl for device (on dk*)

2012-07-28 Thread Edgar Fuß
> Shouldn't that "|=" be a "="? Changing that makes fssconfig -c work for an fs on raid0 (disklabel). But it still fails on raid1/dk* (gpt).

Re: fss: Inappropriate ioctl for device (on dk*)

2012-07-27 Thread Edgar Fuß
This code in fssconfig.c looks suspicious to me: if ((xflag || istmp) && isreg) fss.fss_flags |= FSS_UNLINK_ON_CREATE; else fss.fss_flags = 0; Shouldn't that "|=" be a "="?

fss: Inappropriate ioctl for device (on dk*)

2012-07-27 Thread Edgar Fuß
Now, additionally to fssconfig -c not working at all for me (it does work without "-c"), it now looks that it doesn't work on wedges: fssconfig CALL open(0x7f7fdbb0,2,0) fssconfig NAMI "/dev/rfss0" fssconfig RET open 3 fssconfig CALL ioctl(3,FSSIOCSET,0x7f7fdbf0) fssconfig GIO fd 3