Re: how do I know a subvolume is a snapshot?

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

 




On 17.07.19 г. 2:24 ч., Ulli Horlacher wrote:
> I thought, I can recognize a snapshot when it has a Parent UUID, but this
> is not true for snapshots of toplevel subvolumes: 

As you have asked this before - in my testing this is not true. Looking
at the code it also seems snapshots get a parent. Alternatively you have
to parse the root tree - the ROOT_ITEM's offset member should be 0 for
well-known trees/ordinary subvolume or the transaction id when the
snapshot was created.



[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux