recovering data from a truncated vn-file possible?

2003-07-04 Thread Josh Brooks
Long story short, I have a 4gig vn-backed filesystem. The file backing it is now missing the last 750megs ... I can vnconfig it, but when I fsck it I see: # fsck -y /dev/vn1 ** /dev/vn1 CANNOT READ: BLK 44109856 CONTINUE? yes THE FOLLOWING DISK SECTORS COULD NOT BE READ: 44109856, 44109857,

how to call a syscall in a kernel module?

2003-07-04 Thread zhuyi
Dear all: How to call a syscall in a kernel module? In Linux, you can add two line into your source code. #define __KERNEL_SYSCALLS__ #include linux/unistd.h -- zhuyi [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list

Re: recovering data from a truncated vn-file possible?

2003-07-04 Thread John-Mark Gurney
Josh Brooks wrote this message on Fri, Jul 04, 2003 at 01:59 -0700: Is there anything at all I can do to get data out of this ? I know some of it (750 megs worth) is gone for good - but can I get any of the rest of it ? Presumably, when mounted, this was only 50% full ... If it was UFS1,

Re: Driver vor Watchdog

2003-07-04 Thread Martin Blapp
Hi, I'm currently developing a driver for this watchdog-card: 'Antrax WatchCard PCI' - http://www.antrax.de/ (German) (btw. Antrax != Anthrax) And now I have some questions: - Should I develop the driver for 4.x or 5.x or both? Cool ! That depends where do you plan to use it. I suppose

Re: USB, select/poll for ucom

2003-07-04 Thread M. Warner Losh
Hello akiyama-san. It is Warner. Long time since I've spoken with you. :-) In message: [EMAIL PROTECTED] Shunsuke Akiyama [EMAIL PROTECTED] writes: : + s = spltty(); : + ... : - : - s = spltty(); This is a no-op in current. Have you tested it in 4.x? I think it is right

RFC: Change to sys_errlist

2003-07-04 Thread Matthew Emmerton
This is a RFC on a change to sys_errlist for errno = 0. On Linux, if perror() or strerror() is called with errno = 0, the resulting string is Success. On FreeBSD, the resulting string is Unknown error: 0. I think that FreeBSD's output is unintentionally confusing, as errno = 0 implies success.

libtarfile (Was Re: pkg_create broken by design?)

2003-07-04 Thread Tim Kientzle
Julian Elischer wrote: Sometimes it's a pain to have to install the package before one can build it.. The trouble is that both the @srcdir and the @cwd produce '-C [dir]' to be added to the 'tar' command list I see several possible fixes.. Another alternative: stop trying to use a separate

Re: RFC: Change to sys_errlist

2003-07-04 Thread John-Mark Gurney
Matthew Emmerton wrote this message on Fri, Jul 04, 2003 at 14:03 -0400: This is a RFC on a change to sys_errlist for errno = 0. On Linux, if perror() or strerror() is called with errno = 0, the resulting string is Success. On FreeBSD, the resulting string is Unknown error: 0. I think