bread problem

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

 



Hi,
I'm trying to read a block from disk by block_nr using __bread before
the block has even been written to disk.
The problem in doing this is the block is cached (junk data) and
future sb_bread's return the buffer head from this cache, and not one
that represent the actual data after this data has been written to
disk.

1. block contains junk
2. bread -> cached junk
3. actual data written to disk through the address space object hosted
by some other inode
4. bread -> still returns bh with junk

Is there any way to force a read from disk while doing the second
bread, or to instruct the kernel that the block that's in the cache
has to be re-read?

Thanks,
Joel
--
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