[haiku-development] Re: GSOC: IMAP as a Local File System
- From: anil kag <anilkagak2@xxxxxxxxx>
- To: haiku-development@xxxxxxxxxxxxx
- Date: Mon, 2 Apr 2012 08:32:37 +0530
can i use the device_geometry for completing this task??
device_geometry is given in
http://haiku.it.su.se:8180/source/xref/headers/os/drivers/Drivers.h
thanks...
2012/4/1 Jérôme Duval <korli@xxxxxxxxxxxxxxxx>
> Le 1 avril 2012 00:47, anil kag <anilkagak2@xxxxxxxxx> a écrit :
> > b) // TODO: this does not take read-only volumes into account! in
> > "
> http://haiku.it.su.se:8180/source/xref/src/add-ons/kernel/file_systems/ntfs/fs_func.c
> "
> > here it says this does not take read-only volumes into account.... i mean
> > what does it want to convey...
> > call sequence is something like this...
> > fs_mount(...,...flags,.....) --> utils_mount_volume(...,flags,...)
> -->
> > ntfs_mount(..,flags) --> ntfs_device_mount(..,flags) -->
> > ntfs_volume_startup(..,flags)
> > in the last call it does something like
> > --> if (flags & MS_RDONLY)
> > NVolSetReadOnly(vol) ; ... setting the device read only... am i right??
> can
> > anyone tell me what is required in this todo??
>
> It needs to check first if the underlying device can be opened for write
> or not.
> See
> http://haiku.it.su.se:8180/source/xref/src/add-ons/kernel/file_systems/btrfs/Volume.cpp#270
> or
> http://haiku.it.su.se:8180/source/xref/src/add-ons/kernel/file_systems/fat/dosfs.c#502
> for instance.
>
> Bye,
> Jérôme
>
>
Other related posts: