your own filesystem
Sascha Wildner
saw at online.de
Sun Sep 2 04:54:33 PDT 2012
On Sun, 02 Sep 2012 13:45:51 +0200, sad at bestmx.ru <sad at bestmx.ru> wrote:
>
>> >> > it looks like i possibly have missed the module identifier
>> somewhere
>> >> but
>> >> > i can not locate...
>> >> >
>> >> > plese! help.
>> >>
>> >> How does the VFS_SET() part look in your *_vfsops.c?
>> >>
>> >> Sascha
>> >
>> >
>> > VFS_SET(null_vfsops, null, VFCF_LOOPBACK);
>> > MODULE_VERSION(myfs, 1);
>>
>> Rename null_vfsops structure to myfs_vfsops and use:
>>
>> VFS_SET(myfs_vfsops, myfs, VFCF_LOOPBACK);
>
>
> thanx! it works
>
> i have kldload my module.
> now i am confused about how to call it's functions?
> (excuse me for the stupid question)
> how can i call the "mount" (if it has been created?)
Not 100% sure what you mean but I guess the next step would be to copy
mount_null(8) to mount_myfs(8) and adjust it so it acts on myfs.
Sascha
More information about the Users
mailing list