On Sun, 13 Jun 2021, Wang Yugui wrote: > Hi, > > Any idea about auto export multiple btrfs snapshots? > > One related patch is yet not merged to nfs-utils 2.5.3. > From: "NeilBrown" <neilb@xxxxxxx> > Subject: [PATCH/RFC v2 nfs-utils] Fix NFSv4 export of tmpfs filesystems. > > In this patch, an UUID is auto generated when a tmpfs have no UUID. > > for btrfs, multiple subvolume snapshot have the same filesystem UUID. > Could we generate an UUID for btrfs subvol with 'filesystem UUID' + 'subvol ID'? You really need to ask this question of btrfs developers. 'mountd' already has a special-case exception for btrfs, to prefer the uuid provided by statfs64() rather than the uuid extracted from the block device. It would be quite easy to add another exception. But it would only be reasonable to do that if the btrfs team told us how that wanted us to generate a UUID for a given mount point, and promised that would always provide a unique stable result. This is completely separate from the tmpfs patch you identified. NeilBrown > > Best Regards > Wang Yugui (wangyugui@xxxxxxxxxxxx) > 2021/06/13 > > >