Hi, On Fri 16-07-10 14:09:24, Sage Weil wrote: > I'd like to sync a single fs/superblock from userland. sync(2) is too > heavyweight since it syncs all supers. The only thing I see is the > BLKFLSBUF ioctl. That will fsync_bdev() (which does sync the super), and > then does invalidate_bdev(). > > Is that the right thing to do? Is there any issue with calling > invalidate_bdev() under a running fs? Do any normal block file systems > use the bdev's mapping for non-dirty data? BLKFLSBUF is safe under all conditions. The bad thing is that it frees the caches as well which you may not want. But looking at the code I don't see a way how to sync a single filesystem in some other way from userspace... Honza -- Jan Kara <jack@xxxxxxx> SUSE Labs, CR -- To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html