mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-27 04:32:16 +03:00
Add linux kernel disk support
Native Linux vdev disk interfaces Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
@@ -25,6 +25,8 @@
|
||||
/* Portions Copyright 2007 Jeremy Teo */
|
||||
/* Portions Copyright 2010 Robert Milkowski */
|
||||
|
||||
#ifdef HAVE_ZPL
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
#include <sys/time.h>
|
||||
@@ -319,6 +321,7 @@ zfs_ioctl(vnode_t *vp, int com, intptr_t data, int flag, cred_t *cred,
|
||||
return (ENOTTY);
|
||||
}
|
||||
|
||||
#if defined(_KERNEL) && defined(HAVE_UIO_RW)
|
||||
/*
|
||||
* Utility functions to map and unmap a single physical page. These
|
||||
* are used to manage the mappable copies of ZFS file data, and therefore
|
||||
@@ -343,6 +346,7 @@ zfs_unmap_page(page_t *pp, caddr_t addr)
|
||||
ppmapout(addr);
|
||||
}
|
||||
}
|
||||
#endif /* _KERNEL && HAVE_UIO_RW */
|
||||
|
||||
/*
|
||||
* When a file is memory mapped, we must keep the IO data synchronized
|
||||
@@ -5241,3 +5245,4 @@ const fs_operation_def_t zfs_evnodeops_template[] = {
|
||||
VOPNAME_PATHCONF, { .vop_pathconf = zfs_pathconf },
|
||||
NULL, NULL
|
||||
};
|
||||
#endif /* HAVE_ZPL */
|
||||
|
||||
Reference in New Issue
Block a user