Use correct config descriptor in ugen_set_config

2021-01-31 Thread Thomas Jeunet
t I haven't yet fully audited how the variable is used. -- Thomas Jeunet Index: ugen.c === RCS file: /var/cvs/src/sys/dev/usb/ugen.c,v retrieving revision 1.113 diff -u -p -r1.113 ugen.c --- ugen.c 28 Jan 2021 12:50:

Re: Use correct config descriptor in ugen_set_config

2021-02-04 Thread Thomas Jeunet
On Wed, Feb 03, 2021 at 08:30:42PM +0100, Marcus Glocker wrote: > On Sun, Jan 31, 2021 at 07:05:29PM +0100, Thomas Jeunet wrote: > > > Hello tech, > > > > in ugen_set_config, the cached config descriptor (ugen.c:213) is > > obsolete after the call to usbd_set

Use kernel-space address with FUSE_DEBUG

2018-01-09 Thread Thomas Jeunet
The following patch use the proper address space when using a kernel with FUSE_DEBUG (kernel instead of user, see the copyin above). While here, add some sanity check to the debug function fuse_dump_buff. -- Thomas Jeunet Index: sys/miscfs/fuse/fuse_device.c

Re: bioctl should retry passphrase

2011-01-14 Thread Thomas Jeunet
;> err(1, "BIOCCREATERAID"); >> } > > This might be a flag in bioctl to force looping until the password is correct. This way, you can force correct pasword for /usr, /var or other and keep the current behaviour for partition like /home/user1/encypted I only have the former so my /etc/rc contains: if [ X"${bioctl_flags}" != X"NO" ]; then trap '' EXIT TERM KILL echo 'mounting softraid'; until bioctl $bioctl_flags 2>/dev/null ; do done trap - EXIT TERM KILL fi # Check parity on raid devices. raidctl -P all -- Thomas Jeunet

Re: script to make installable disk image

2012-09-06 Thread Thomas Jeunet
On Wed, Sep 5, 2012 at 9:36 AM, Ted Unangst wrote: > We provide many forms of installation media, but neither floppy nor > iso images are "best" suited for usb drives. It's pretty easy to make > a hard drive image containing the installer bsd.rd. > > I tested this on i386, it should work on amd64