how to export my filesystem under knfsd, pls help.

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

 



Recently I wrote a filesystem under linux. I use read_inode2 to fetch
inode staff(in the reiserfs way), and it is diskless(that means with
MS_NODEV ops).

When I want to export it using NFS, I found I should do following
things:
	/* There are two requirements on a filesystem to be exportable.
	 * 1:  We must be able to identify the filesystem from a number.
	 *       either a device number (so FS_REQUIRES_DEV needed)
	 *       or an FSID number (so NFSEXP_FSID needed).
	 * 2:  We must be able to find an inode from a filehandle.
	 *       either using fh_to_dentry (prefered)
	 *       or using read_inode (the hack).
	 */

for the first one, I should provide a FSID( I want to know where I can
do it).

for the second one, I use the preferred way(fh_to_dentry).

Does that enough for me to export my filesystem by nfs?


Best regards.

/yf

-
: send the line "unsubscribe linux-net" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux