Anand Jain
2011-Jul-05 10:10 UTC
bug: missing snapshot as in the btrfs subvolume list command
A confirmation if the following bug is being taken care will help. Have 9 sub-vols `btrfs subvolume list /btrfs` --------------------------------------------- # btrfs subvolume list /btrfs ID 256 top level 5 path sv1 ID 257 top level 5 path snapy23988 ID 258 top level 5 path snapi24000 ID 259 top level 5 path snapC24009 ID 260 top level 5 path snapo24018 ID 261 top level 5 path snapm24027 ID 262 top level 5 path snapx24036 ID 263 top level 5 path snape24045 ID 264 top level 5 path snapt24054 # btrfs subvolume list /btrfs | wc -l 9 ---------------------------------------- and create 10th subvol ------- # S=`mktemp -u /btrfs/snapXXXXXX`; btrfs subvolume snapshot /btrfs/snapt24054 $S Create a snapshot of ''/btrfs/snapt24054'' in ''/btrfs/snapm24071'' ------ now list fails to report ID 261 (note that last snapshot was successfully created) ---------------- # btrfs subvolume list /btrfs ID 256 top level 5 path sv1 ID 257 top level 5 path snapy23988 ID 258 top level 5 path snapi24000 ID 259 top level 5 path snapC24009 ID 260 top level 5 path snapo24018 ID 262 top level 5 path snapx24036 ID 263 top level 5 path snape24045 ID 264 top level 5 path snapt24054 ID 265 top level 5 path snapm24071 # btrfs subvolume list /btrfs | wc -l 9 # ------------------------------ only happens at 10th subvol if you create 11th subvol list if fine. ------------------------------ # S=`mktemp -u /btrfs/snapXXXXXX`; btrfs subvolume snapshot /btrfs/snapm24071 $S Create a snapshot of ''/btrfs/snapm24071'' in ''/btrfs/snapR24080'' # btrfs subvolume list /btrfs ID 256 top level 5 path sv1 ID 257 top level 5 path snapy23988 ID 258 top level 5 path snapi24000 ID 259 top level 5 path snapC24009 ID 260 top level 5 path snapo24018 ID 261 top level 5 path snapm24027 ID 262 top level 5 path snapx24036 ID 263 top level 5 path snape24045 ID 264 top level 5 path snapt24054 ID 265 top level 5 path snapm24071 ID 266 top level 5 path snapR24080 # btrfs subvolume list /btrfs | wc -l 11 # --------------------------- Thanks, -Anand -- To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Hugo Mills
2011-Jul-05 10:18 UTC
Re: bug: missing snapshot as in the btrfs subvolume list command
On Tue, Jul 05, 2011 at 06:10:42PM +0800, Anand Jain wrote:> A confirmation if the following bug is being taken care will help. > > Have 9 sub-vols `btrfs subvolume list /btrfs` > --------------------------------------------- > # btrfs subvolume list /btrfs > ID 256 top level 5 path sv1 > ID 257 top level 5 path snapy23988 > ID 258 top level 5 path snapi24000 > ID 259 top level 5 path snapC24009 > ID 260 top level 5 path snapo24018 > ID 261 top level 5 path snapm24027 > ID 262 top level 5 path snapx24036 > ID 263 top level 5 path snape24045 > ID 264 top level 5 path snapt24054 > # btrfs subvolume list /btrfs | wc -l > 9 > ---------------------------------------- > > and create 10th subvol > ------- > # S=`mktemp -u /btrfs/snapXXXXXX`; btrfs subvolume snapshot > /btrfs/snapt24054 $S > Create a snapshot of ''/btrfs/snapt24054'' in ''/btrfs/snapm24071'' > ------ > > now list fails to report ID 261 (note that last snapshot was > successfully created) > ---------------- > # btrfs subvolume list /btrfs > ID 256 top level 5 path sv1 > ID 257 top level 5 path snapy23988 > ID 258 top level 5 path snapi24000 > ID 259 top level 5 path snapC24009 > ID 260 top level 5 path snapo24018 > ID 262 top level 5 path snapx24036 > ID 263 top level 5 path snape24045 > ID 264 top level 5 path snapt24054 > ID 265 top level 5 path snapm24071 > # btrfs subvolume list /btrfs | wc -l > 9 > # > ------------------------------Could you try this with the integration branch of the btrfs tools, available from: http://git.darksatanic.net/repo/btrfs-progs-unstable.git/ in the "integration-20110703" branch. There''s a patch in there that should deal with this particular problem (if it''s what I think it is, which it probably is). Hugo. -- === Hugo Mills: hugo@... carfax.org.uk | darksatanic.net | lug.org.uk == PGP key: 515C238D from wwwkeys.eu.pgp.net or http://www.carfax.org.uk --- Once is happenstance; twice is coincidence; three times --- is enemy action.