commit | 159e0561e322dd8008fff59e36efff8d2bdd0b0e | [log] [tgz] |
---|---|---|
author | Peng Tao <bergwolf@gmail.com> | Tue May 29 13:57:58 2012 +0800 |
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | Mon Jul 30 18:52:06 2012 -0400 |
tree | 19a15ff455d33cb25f1747027751e46b2e79efb0 | |
parent | f44106e2173f08ccb1c9195d85a6c22388b461c1 [diff] |
pnfsblock: bail out partial page IO Current block layout driver read/write code assumes page aligned IO in many places. Add a checker to validate the assumption. Otherwise there would be data corruption like when application does open(O_WRONLY) and page unaliged write. Signed-off-by: Peng Tao <tao.peng@emc.com> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>