The original tar file has trailing base64 checksums, so I have repackaged the tar file for just now. This is release 1.3 of the Parallel Data Laboratory NASD software prototype. The release includes the NASD drive prototype, the NASD-NFS filemanager, simple client APIs, a regression-testing suite, sample programs, a snapshot of Cheops (which is one implementation of aggregation over multiple NASDs), and some basic documentation.
53 lines
1.8 KiB
Text
53 lines
1.8 KiB
Text
$NetBSD: patch-aj,v 1.1.1.1 2005/05/04 08:56:49 agc Exp $
|
|
|
|
Index: common/netbsd/nasd_netbsd_lseek.c
|
|
===================================================================
|
|
RCS file: common/netbsd/nasd_netbsd_lseek.c
|
|
diff -N common/netbsd/nasd_netbsd_lseek.c
|
|
--- /dev/null 1 Jan 1970 00:00:00 -0000
|
|
+++ common/netbsd/nasd_netbsd_lseek.c 21 Mar 2005 22:29:37 -0000 1.1
|
|
@@ -0,0 +1,44 @@
|
|
+/* nasd_netbsd_lseek.c
|
|
+ *
|
|
+ * lseek() front-end for NetBSD userland
|
|
+ *
|
|
+ * Author: Nat Lanza
|
|
+ */
|
|
+/*
|
|
+ * Copyright (c) of Carnegie Mellon University, 1999.
|
|
+ *
|
|
+ * Permission to reproduce, use, and prepare derivative works of
|
|
+ * this software for internal use is granted provided the copyright
|
|
+ * and "No Warranty" statements are included with all reproductions
|
|
+ * and derivative works. This software may also be redistributed
|
|
+ * without charge provided that the copyright and "No Warranty"
|
|
+ * statements are included in all redistributions.
|
|
+ *
|
|
+ * NO WARRANTY. THIS SOFTWARE IS FURNISHED ON AN "AS IS" BASIS.
|
|
+ * CARNEGIE MELLON UNIVERSITY MAKES NO WARRANTIES OF ANY KIND, EITHER
|
|
+ * EXPRESSED OR IMPLIED AS TO THE MATTER INCLUDING, BUT NOT LIMITED
|
|
+ * TO: WARRANTY OF FITNESS FOR PURPOSE OR MERCHANTABILITY, EXCLUSIVITY
|
|
+ * OF RESULTS OR RESULTS OBTAINED FROM USE OF THIS SOFTWARE. CARNEGIE
|
|
+ * MELLON UNIVERSITY DOES NOT MAKE ANY WARRANTY OF ANY KIND WITH RESPECT
|
|
+ * TO FREEDOM FROM PATENT, TRADEMARK, OR COPYRIGHT INFRINGEMENT.
|
|
+ */
|
|
+
|
|
+#include <nasd/nasd_options.h>
|
|
+#include <nasd/nasd_types.h>
|
|
+#include <nasd/nasd_common.h>
|
|
+#include <nasd/nasd_sys.h>
|
|
+#include <nasd/nasd_general.h>
|
|
+
|
|
+#include <errno.h>
|
|
+#include <unistd.h>
|
|
+
|
|
+nasd_uint64
|
|
+nasd_lseek(int fd, nasd_uint64 offset, int whence, int *err)
|
|
+{
|
|
+ off_t result;
|
|
+
|
|
+ errno = 0;
|
|
+ result = lseek(fd, offset, whence);
|
|
+ *err = errno;
|
|
+ return result;
|
|
+}
|