diff options
author | Liu Bo <liubo2009@cn.fujitsu.com> | 2012-08-03 17:48:56 +0800 |
---|---|---|
committer | root <root@localhost.localdomain> | 2012-10-04 16:26:32 -0400 |
commit | f02827c1c03e5c6d7bd02fe49d8f365680fe1aee (patch) | |
tree | cf1da5c094c6dcf965440d61d8f034cfbb6e0727 /dir-item.c | |
parent | 95eeaf1c29774ad72b087e8b9d9938f5a17434b5 (diff) |
Btrfs-progs: list snapshots by generation
The idea is that we usually use snapshot to backup/restore our data, and the
common way can be a cron script which makes lots of snapshots, so we can end
up with spending some time to find the latest snapshot to restore.
This adds a feature for 'btrfs subvolume list' to let it list snapshots by their
_created_ generation.
What we need to do is just to list them in descending order and get the latest
snapshot. What's more, we can find the oldest snapshot as well by listing
snapshots in ascending order.
Signed-off-by: Liu Bo <liubo2009@cn.fujitsu.com>
Diffstat (limited to 'dir-item.c')
0 files changed, 0 insertions, 0 deletions