mirror of
https://github.com/coreutils/coreutils.git
synced 2024-12-03 23:13:50 +08:00
(direct_mode): Turn it on/off with directio, too.
This commit is contained in:
parent
8cb9d48559
commit
62d6b980b2
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user