[Prev][Next][Index][Thread]
Re: how to define diskname and patition in netbsd?
> From: yaoyyuan@263.net
> Subject: how to define diskname and patition in netbsd?
>
> I want to run the example of examples/x86/threads/console_tty.
> But it has netbsd_fs_mount failed error. I have modifed it as:
> # define DISKNAME "hda"
> # define PATITION "a"
>
> Such defination work well in x86/linux_fs_com example.
> So anyone can tell me how to define DISKNAME and PATITION in netbsd?
Well, is it possible that your filesystem is a linux filesystem (which is
why it worked in linux_fs_com), and that trying to use the BSD filesystem
component on it will not work? I think that because the open succeeded (or
thats the error you would have seen).
The filesystem mount in console_tty is sorta silly (I threw it in for
kicks). You can proabably remove it if you just want to get the code to
run.
Lbs
---------------------------------------------------------------------------
Leigh B. Stoller Computer Science - Flux Research Group
stoller@cs.utah.edu University of Utah
http://www.cs.utah.edu/~stoller Salt Lake City, Utah 84112
Voice: (541) 929-2666 FAX: (801) 585-3743
---------------------------------------------------------------------------