DragonFly BSD
DragonFly users List (threaded) for 2012-09
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: your own filesystem


From: "Sascha Wildner" <saw@xxxxxxxxx>
Date: Sun, 02 Sep 2012 13:54:33 +0200

On Sun, 02 Sep 2012 13:45:51 +0200, sad@bestmx.ru <sad@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



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]