Re: Panic connecting to (broken) NFS server
Re: Panic connecting to (broken) NFS server
- Subject: Re: Panic connecting to (broken) NFS server
- From: Mike Mackovitch <email@hidden>
- Date: Sun, 5 Nov 2006 23:36:46 -0800
On Fri, Nov 03, 2006 at 04:43:23PM -0800, Casey Marshall wrote:
> Hi. I hope this is on-topic enough for this list:
>
> I'm trying to write a "toy" stacking file system, using a user-space
> NFS server. I'm doing this partly on the advice of QA1242 [1],
> because no nicer API (such as FUSE) exists for OS X at the moment,
> and because I don't want to write any VFS code if I can help it. This
> seemed like the best approach to take, since indeed, I don't feel
> like hacking through VFS for this project, nor debugging kernel panics.
>
> But OS X still panics when calling my NFS server. I didn't expect
> that to happen, and I am now sad.
>
> [...]
>
> Back to my own server -- it *is* currently broken, because I'm still
> working on it, and some NFS functions are stubbed out. I'm sure the
> functions I have implemented are probably buggy, too, and I'm
> guessing at what values need to go into some structures (like the one
> getattr returns). But, even if this is the case, it doesn't seem like
> this should crash the kernel.
An NFS server shouldn't crash the kernel and so we would greatly appreciate
it if you would file a bug. Doing so will help Apple to make sure this
gets addressed and it will probably also help you as you can get feedback
on what to do to avoid the panic(s) until a fix can be released.
(If you really don't want to file a bug at least email me off-list. Thanks!).
> I can very reliably cause a kernel panic by mounting the file system
> (using either 'mount_nfs' or Finder), and trying to list the contents
> of the root directory. This is what shows up in my panic.log:
My first guess would be to make sure you're returning a non-zero value
in the the NFSv2 STATFS reply's "bsize" field.
Also, a tool like ethereal/wireshark is immensely useful for debugging
network protocols like NFS.
HTH
--macko
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Filesystem-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden