linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* NFS and non-blkdev-backed FS?
@ 2008-08-15  8:55 Artem Bityutskiy
  2008-08-15 12:34 ` Christoph Hellwig
                   ` (2 more replies)
  0 siblings, 3 replies; 16+ messages in thread
From: Artem Bityutskiy @ 2008-08-15  8:55 UTC (permalink / raw)
  To: linux-fsdevel

When I NFS-export UBIFS, I see the following warning:
exportfs: Warning: /mnt/ubifs requires fsid= for NFS export

And the client won't mount UBIFS:
mount.nfs: access denied by server while mounting gollum:/mnt/ubifs

The problem is solved by adding 'fsid=5' to /etc/exports. And BTW,
exactly the same happens to JFFS2.

This looks strange to me, probably because I misunderstand
something.

AFAIU, NFS uses major/minor numbers of block device to create
FSID and uses it as part of file handle. And the idea behind
this is that if the server rebooted unexpectedly, and then
exported a _different_ file-system to the same path, the client
would notice this because the FSID part of file handle would
change.

Well, I do not see how it solves the problem if the hard drive has
been changed, though.

Since UBIFS (and JFFS2) does not work on top of block devices, NFS
cannot compose FSID from major/minor numbers and exportfs yells.

But I do not like the idea of adding explicit fsid=5 to /etc/exports,
because it does not seem to solve the above problem, surely?

UBIFS (as e.g. XFS) has a 16-byte UUID in superblock which is
supposed to uniquely identify the file-system. I'd like to use
this UUID as NFS FSID instead, however, I failed to find how
to do this. Any hints how could I do this?

Thanks.

-- 
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
--
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2008-08-28 15:42 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-15  8:55 NFS and non-blkdev-backed FS? Artem Bityutskiy
2008-08-15 12:34 ` Christoph Hellwig
2008-08-15 13:59 ` David Woodhouse
2008-08-15 14:18   ` Trond Myklebust
2008-08-16 18:11     ` Christoph Hellwig
2008-08-16 19:37       ` Trond Myklebust
2008-08-18 11:17     ` David Woodhouse
2008-08-18 12:17       ` [PATCH 1/3] Fix handling of explicit uuid David Woodhouse
     [not found]         ` <1219061850.3184.378.camel-ZP4jZrcIevRpWr+L1FloEB2eb7JE58TQ@public.gmane.org>
2008-08-28 15:38           ` Steve Dickson
     [not found]       ` <1219058258.3184.358.camel-ZP4jZrcIevRpWr+L1FloEB2eb7JE58TQ@public.gmane.org>
2008-08-18 12:17         ` [PATCH 2/3] Explicit UUID handling doesn't require blkid; factor out get_uuid_blkdev() David Woodhouse
     [not found]           ` <1219061859.3184.380.camel-ZP4jZrcIevRpWr+L1FloEB2eb7JE58TQ@public.gmane.org>
2008-08-28 15:38             ` Steve Dickson
2008-08-18 12:17         ` [PATCH 3/3] Use fsid from statfs for UUID if blkid can't cope (or not used) David Woodhouse
     [not found]           ` <1219061860.3184.382.camel-ZP4jZrcIevRpWr+L1FloEB2eb7JE58TQ@public.gmane.org>
2008-08-28 15:39             ` Steve Dickson
2008-08-18 16:00         ` [PATCH 4/3] Stop exportfs warning about needing fsid, when we actually have one David Woodhouse
2008-08-28 15:39           ` Steve Dickson
2008-08-18 16:52 ` NFS and non-blkdev-backed FS? Bryan Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).