From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay3.corp.sgi.com [198.149.34.15]) by oss.sgi.com (Postfix) with ESMTP id 79C997F62 for ; Thu, 29 Aug 2013 11:14:41 -0500 (CDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by relay3.corp.sgi.com (Postfix) with ESMTP id 2507AAC009 for ; Thu, 29 Aug 2013 09:14:38 -0700 (PDT) Received: from sandeen.net (sandeen.net [63.231.237.45]) by cuda.sgi.com with ESMTP id ZZeU49bIFuPF5oKO for ; Thu, 29 Aug 2013 09:14:37 -0700 (PDT) Message-ID: <521F736B.2000009@sandeen.net> Date: Thu, 29 Aug 2013 11:14:35 -0500 From: Eric Sandeen MIME-Version: 1.0 Subject: Re: [PATCH] xfstests: btrfs/003: regression test for subvol delete V2 References: <1376422458-2339-1-git-send-email-jbacik@fusionio.com> <520A8B1D.60307@redhat.com> <20130829132158.GI23113@twin.jikos.cz> In-Reply-To: <20130829132158.GI23113@twin.jikos.cz> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: dsterba@suse.cz, Eric Sandeen , Josef Bacik , linux-btrfs@vger.kernel.org, xfs@oss.sgi.com On 8/29/13 8:21 AM, David Sterba wrote: > On Tue, Aug 13, 2013 at 02:38:05PM -0500, Eric Sandeen wrote: >>> +. ./common/rc >>> +. ./common/filter >>> + >>> +# real QA test starts here >>> +_supported_fs btrfs >>> +_supported_os Linux >>> +_require_scratch >>> + >>> +_scratch_mkfs > /dev/null 2>&1 >>> +_scratch_mount >>> + >>> +# This will be set to subvolid 256. If this ever changes in the future for >>> +# whatever reason we'll have to pull the subvolid out of the subvol list command >>> +# but since it's a newly mkfs'ed fs we should be fine with this. >> >> . . . and then you grab it out of the subvol list command anyway ;) >> >> So really this comment should go, and it sure would be nice to have >> a btrfs_get_subvolid() helper for future generations... > > This is available in the 'btrfs subvol show /subvol': > > # btrfs subvol show subv1 > /mnt/a15/subv1 > Name: subv1 > uuid: cf010ad0-38bf-7a42-88be-3360f68cd335 > Parent uuid: e6543f70-5d38-1845-b976-d18095860bdf > Creation time: 2013-08-29 15:18:18 > Object ID: 258 > Generation (Gen): 6 > Gen at creation: 6 > Parent: 5 > Top Level: 5 > Flags: readonly > Snapshot(s): > > Though it involves grep as well. Ok, yeah, I just meant an xfstests helper routine, sorry. I guess it could use the above, or subvol list as Josef has done. -Eric > david > > _______________________________________________ > xfs mailing list > xfs@oss.sgi.com > http://oss.sgi.com/mailman/listinfo/xfs > _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs