From 1efb473f8919c5f195e127136b79c6d3b1eb1c81 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Wed, 26 Jan 2011 12:03:58 -0800 Subject: Add Hooks for Linux File Operations The Linux specific file operations have all been located in the file zpl_file.c. These functions primarily rely on the reworked zfs_* functions to do their job. They are also responsible for converting the possible Solaris style error codes to negative Linux errors. This first zpl_* commit also includes a common zpl.h header with minimal entries to register the Linux specific hooks. In also adds all the new zpl_* file to the Makefile.in. This is not a standalone commit, you required the following zpl_* commits. --- lib/libzpool/Makefile.am | 4 ++++ lib/libzpool/Makefile.in | 4 ++++ 2 files changed, 8 insertions(+) (limited to 'lib/libzpool') diff --git a/lib/libzpool/Makefile.am b/lib/libzpool/Makefile.am index 450f4cca1..b15830ded 100644 --- a/lib/libzpool/Makefile.am +++ b/lib/libzpool/Makefile.am @@ -106,5 +106,9 @@ EXTRA_DIST = \ $(top_srcdir)/module/zfs/zfs_rlock.c \ $(top_srcdir)/module/zfs/zfs_vfsops.c \ $(top_srcdir)/module/zfs/zfs_vnops.c \ + $(top_srcdir)/module/zfs/zpl_file.c \ + $(top_srcdir)/module/zfs/zpl_inode.c \ + $(top_srcdir)/module/zfs/zpl_super.c \ + $(top_srcdir)/module/zfs/zpl_xattr.c \ $(top_srcdir)/module/zfs/zvol.c \ $(top_srcdir)/module/zpios/pios.c diff --git a/lib/libzpool/Makefile.in b/lib/libzpool/Makefile.in index 29d312f9d..344612d31 100644 --- a/lib/libzpool/Makefile.in +++ b/lib/libzpool/Makefile.in @@ -427,6 +427,10 @@ EXTRA_DIST = \ $(top_srcdir)/module/zfs/zfs_rlock.c \ $(top_srcdir)/module/zfs/zfs_vfsops.c \ $(top_srcdir)/module/zfs/zfs_vnops.c \ + $(top_srcdir)/module/zfs/zpl_file.c \ + $(top_srcdir)/module/zfs/zpl_inode.c \ + $(top_srcdir)/module/zfs/zpl_super.c \ + $(top_srcdir)/module/zfs/zpl_xattr.c \ $(top_srcdir)/module/zfs/zvol.c \ $(top_srcdir)/module/zpios/pios.c -- cgit v1.2.3