Re: syncing a single fs, and invalidate_bdev()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



  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


[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux