dd if=$tmpfile of=$testfile bs=$pagesz count=2 oflag=direct ||
error "could not write to file with O_DIRECT (1)"
- respage=$(vmtouch $testfile | awk '/Resident\ Pages:/ {print $3}')
+ respage=$(vmtouch $testfile | awk '/Resident Pages:/ {print $3}')
[ "$respage" == "0/2" ] ||
error "write to enc file fell back to buffered IO"
dd if=$testfile of=$resfile bs=$pagesz count=2 iflag=direct ||
error "could not read from file with O_DIRECT (1)"
- respage=$(vmtouch $testfile | awk '/Resident\ Pages:/ {print $3}')
+ respage=$(vmtouch $testfile | awk '/Resident Pages:/ {print $3}')
[ "$respage" == "0/2" ] ||
error "read from enc file fell back to buffered IO"