VFS: Implement REQ_BPEEK.

This commit introduces a new request type called REQ_BPEEK. It
requests minor device blocks from the FS.  Analogously to REQ_PEEK,
it requests the filesystem to get the requested blocks into its
cache, without actually copying the result anywhere.

Change-Id: If1d06645b0e17553a64b3167091e9d12efeb3d6f
This commit is contained in:
Ben Gras
2013-03-16 04:09:36 +00:00
parent 0cfff08e56
commit 44f34e53d5
12 changed files with 105 additions and 31 deletions

View File

@@ -117,8 +117,9 @@ typedef struct {
#define REQ_GETDENTS (VFS_BASE + 31)
#define REQ_STATVFS (VFS_BASE + 32)
#define REQ_PEEK (VFS_BASE + 33)
#define REQ_BPEEK (VFS_BASE + 34)
#define NREQS 34
#define NREQS 35
#define IS_VFS_RQ(type) (((type) & ~0xff) == VFS_BASE)