From 62d6b980b27e15d7013aa24a0a1b89039ba2fe8e Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 8 Jun 2004 06:47:43 +0000 Subject: [PATCH] (direct_mode): Turn it on/off with directio, too. --- src/shred.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shred.c b/src/shred.c index 44be403f59..92962b9ed3 100644 --- a/src/shred.c +++ b/src/shred.c @@ -828,10 +828,10 @@ direct_mode (int fd, bool enable) } } -#if HAVE_DIRECTIO && defined DIRECTIO_ON +#if HAVE_DIRECTIO && defined DIRECTIO_ON && defined DIRECTIO_OFF /* This is Solaris-specific. See the following for details: http://docs.sun.com/db/doc/816-0213/6m6ne37so?q=directio&a=view */ - directio (fd, DIRECTIO_ON); + directio (fd, enable ? DIRECTIO_ON : DIRECTIO_OFF); #endif } -- 2.47.3