Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/sys add definitions of FIOSEEKDATA and FIOSEEKHOLE for ZFS.



details:   https://anonhg.NetBSD.org/src/rev/c04121bf25fe
branches:  trunk
changeset: 830096:c04121bf25fe
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Feb 25 18:55:23 2018 +0000

description:
add definitions of FIOSEEKDATA and FIOSEEKHOLE for ZFS.
from FreeBSD.

diffstat:

 sys/sys/filio.h |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (27 lines):

diff -r 40cf285b51ed -r c04121bf25fe sys/sys/filio.h
--- a/sys/sys/filio.h   Sun Feb 25 18:54:29 2018 +0000
+++ b/sys/sys/filio.h   Sun Feb 25 18:55:23 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: filio.h,v 1.10 2005/12/11 12:25:20 christos Exp $      */
+/*     $NetBSD: filio.h,v 1.11 2018/02/25 18:55:23 chs Exp $   */
 
 /*-
  * Copyright (c) 1982, 1986, 1990, 1993, 1994
@@ -44,6 +44,9 @@
 /* Generic file-descriptor ioctl's. */
 #define        FIOCLEX          _IO('f', 1)            /* set close on exec on fd */
 #define        FIONCLEX         _IO('f', 2)            /* remove close on exec */
+/* Handle lseek SEEK_DATA and SEEK_HOLE for holey file knowledge. */
+#define        FIOSEEKDATA     _IOWR('f', 97, off_t)   /* SEEK_DATA */
+#define        FIOSEEKHOLE     _IOWR('f', 98, off_t)   /* SEEK_HOLE */
 #define        FIONREAD        _IOR('f', 127, int)     /* get # bytes to read */
 #define        FIONBIO         _IOW('f', 126, int)     /* set/clear non-blocking i/o */
 #define        FIOASYNC        _IOW('f', 125, int)     /* set/clear async i/o */
@@ -55,7 +58,6 @@
                                                 * in send queue. */
 #define        FIONSPACE       _IOR('f', 120, int)     /* get space in send queue. */
 
-
 /* Ugly symbol for compatibility with other operating systems */
 #define        FIBMAP          FIOGETBMAP
 



Home | Main Index | Thread Index | Old Index