]>
git.proxmox.com Git - ceph.git/blob - ceph/src/test/test_cfuse_cache_invalidate.cc
12 #define REGION 1048576
13 int main(int argc
, char *argv
[]) {
17 memset(buf
, 0, sizeof(buf
));
21 int fd
= open(argv
[1], O_RDWR
|O_CREAT
, 0644);
29 printf("writing %d\n", i
++);
30 assert(pwrite(fd
, buf
, REGION
, 0) == REGION
);
32 int ret
= waitpid(p
, &status
, WNOHANG
);
41 int fd
= open(argv
[2], O_RDONLY
, 0644);
48 assert(pread(fd
, buf
, REGION
, 0) == REGION
);