Exporting jffs2 by nfs with kernel 2.6
Gregory CLEMENT
gclement00 at gmail.com
Tue Sep 26 04:15:23 EDT 2006
Hi all,
On 2.4.18 we managed to export a jffs2 filesystem by nfs.
Now on 2.6.16 we can't.
I found 2 problems for it:
First, changed was made in nfs, and now they test if
s_export_op is not a void pointer. By dding a pointer on
this structure (even this structure is void) makes nfs happy.
If the structure is void nfs use generic function, so for this part
I think it's ok
Second, nfs need to identify the filesystem to export. It is done
either by the device of the filesystem or by a "fsid". I didfn't see any
filesystem use a "fsid" and I don't know how to use it. So identification
is made if FS_REQUIRES_DEV is set. The problem was in kernel 2.5.7,
this flag was removed because "We never really used the block device anyway".
Do you mind setting this flag again? Or have you a better idea?
I joined my patch which make jffs2 exportable by nfs:
PS: I sent this mail 3 weeks ago to jffs-dev at axis.com before notice
that now jffs2 is discussed on this mailing-list.
--
Gregory CLEMENT
Adeneo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jffs2_exported_by_nfs.patch
Type: text/x-patch
Size: 942 bytes
Desc: not available
Url : http://lists.infradead.org/pipermail/linux-mtd/attachments/20060926/4dd3c0f8/attachment.bin
More information about the linux-mtd
mailing list