Re: Swapping fs root inode without unmounting

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

 



On Fri, Mar 07, 2025 at 04:39:21PM +0100, tzsz wrote:
> Hello!
> 
> We are currently developing a snapshot feature for a small university
> project. And for this reason we are looking for a way to swap out the root
> inode of our (mounted) fs.
> Internally we have a set of root inodes and we'd like to swap them out at
> will without unmounting the entire filesystem.
> 
> Is there any function/way how to do this properly?

See btrfs_get_tree(), mount_subvol(), and mount_subtree() in
fs/btrfs/super.c




[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux