On 2010-12-08, at 10:27, J. Bruce Fields wrote:
> On Wed, Dec 08, 2010 at 10:16:29AM -0700, Andreas Dilger wrote:
>> It looks like mk_fsid() is only actually using the UUID if it is specified 
>> in the /etc/exports file (AFAICS, this depends on ex_uuid being set from a 
>> uuid="..." option).
> 
> No, if you look at the nfs-utils source you'll find mountd sets a uuid
> by default (in utils/mountd/cache.c:uuid_by_path()).

Unfortunately, this only works for block devices, not network filesystems.

>> There was a patch in the open_by_handle() patch series that added an s_uuid 
>> field to the superblock, that could be used if no uuid= option is specified 
>> in the /etc/exports file.
> 
> Agreed that doing this in the kernel would probably be simpler.

Agreed.

Cheers, Andreas





--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to