linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFE] Add a new super operation for finding block devices in a super
@ 2011-03-14 15:37 Josef Bacik
  2011-03-14 15:37 ` [PATCH 1/2] fs: add super operation contains_bdev Josef Bacik
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Josef Bacik @ 2011-03-14 15:37 UTC (permalink / raw)
  To: linux-fsdevel, linux-btrfs, viro, hch

Btrfs can span multiple devices, so sb->s_bdev will not always point to the
block device that we are looking to freeze.  This isn't a huge issue since the
only thing that freezes per-bdev is device-mapper, but if btrfs spans multiple
dm devices then we could run into corruption issues as we could end up not
actually freezing the super properly.  So enter contains_bdev.  This will be
used by get_active_super, if the sb implements contains_bdev we just ask the fs
if it has the bdev we want and if so we are good to go.  I'm not married to the
name, so if anybody has any better suggestions I'm open to them.  Comments?
Thanks,

Josef

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-03-14 17:50 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-14 15:37 [RFE] Add a new super operation for finding block devices in a super Josef Bacik
2011-03-14 15:37 ` [PATCH 1/2] fs: add super operation contains_bdev Josef Bacik
2011-03-14 15:37 ` [PATCH 2/2] btrfs: implement super op contains_bdev Josef Bacik
2011-03-14 16:31 ` [RFE] Add a new super operation for finding block devices in a super Christoph Hellwig
2011-03-14 17:50   ` Josef Bacik

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).