Re: NFS exporting btrfs subvolumes.

2010-06-01 Thread Neil Brown
On Tue, 01 Jun 2010 23:56:20 -0400 Trond Myklebust wrote: > On Wed, 2010-06-02 at 13:41 +1000, Neil Brown wrote: > > NFS needs a unique identifier for a filesystem to be able to export it. > > > Can anyone suggest a better way to get a good uuid for a btrfs filesystem? > > How about just adding

Re: NFS exporting btrfs subvolumes.

2010-06-01 Thread Trond Myklebust
On Wed, 2010-06-02 at 13:41 +1000, Neil Brown wrote: > NFS needs a unique identifier for a filesystem to be able to export it. > Can anyone suggest a better way to get a good uuid for a btrfs filesystem? How about just adding the btrfs subvolid to the filehandle and using that to remove the ambig

NFS exporting btrfs subvolumes.

2010-06-01 Thread Neil Brown
NFS needs a unique identifier for a filesystem to be able to export it. This can be set by the admin (fsid= in /etc/exports) but that is a hassle and it is best to set it automatically. nfs-utils currently uses the UUID returned by libblkid if that works, or the fsid returned by statfs64 if libb