Added O_NOATIME to replay file
authorAlan D. Brunelle <Alan.Brunelle@hp.com>
Wed, 10 Oct 2007 17:25:20 +0000 (13:25 -0400)
committerAlan D. Brunelle <Alan.Brunelle@hp.com>
Wed, 10 Oct 2007 17:25:20 +0000 (13:25 -0400)
Signed-off-by: Alan D. Brunelle <Alan.Brunelle@hp.com>
btreplay/btreplay.c

index 1808b358e3f6ed07758f16fdd4b78e0468f6f5b9..8e6b7dc952a005c4d682c4de42332eb88e4f8d42 100644 (file)
@@ -1318,7 +1318,7 @@ static void *replay_sub(void *arg)
        pin_to_cpu(tip);
 
        sprintf(path, "/dev/%s", map_dev(tip->devnm));
-       tip->ofd = open(path, O_RDWR | O_DIRECT);
+       tip->ofd = open(path, O_RDWR | O_DIRECT | O_NOATIME);
        if (tip->ofd < 0) {
                fatal(path, ERR_SYSCALL, "Failed device open\n");
                /*NOTREACHED*/