From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Ball Subject: Re: Updating the wiki pages adding btrfs command Date: Wed, 15 Sep 2010 18:37:24 -0400 Message-ID: References: <201009131923.53227.kreijack@libero.it> <201009142125.56710.kreijack@libero.it> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Josh Berry , David Nicol , kreijack , linux-btrfs To: Sage Weil Return-path: In-Reply-To: (Sage Weil's message of "Wed, 15 Sep 2010 15:31:17 -0700 (PDT)") List-ID: Hi Sage, > Actually, that was fixed in 2.6.34 (0bdb1db2). Creating a > snapshot syncs all dirty data and metadata to disk, so you get a > fully consistent point in time snapshot. No 'sync' is necessary > (and doing a 'sync' yourself would be racy any). Oh, thanks! Am happy to see that. > Why not just do: > # btrfs subvolume delete /path/to/subvolume1 > # btrfs subvolume delete /path/to/subvolume2 > # sync Or even better, "btrfs filesystem sync ". I'm assuming that the caller wants to wait until the subvol delete has happened, but is unwilling to wait until all other writes to the FS have finished, and is even more unwilling to wait for all writes on the rest of the system to finish. I don't know whether that's actually a reasonable/plausible use case, though. - Chris. -- Chris Ball One Laptop Per Child