mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 02:20:59 +03:00
9490c14835
Update check.sh script to take V=1 env var so you can run it verbosely as follows if your chasing something: sudo make check V=1 Add new kobj api and needed regression tests to allow reading of files from within the kernel. Normally thats not something I support but the spa layer needs the support for its config file. Add some more missing stub headers git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@38 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
30 lines
568 B
C
30 lines
568 B
C
#ifndef _SPL_KOBJ_H
|
|
#define _SPL_KOBJ_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include <linux/module.h>
|
|
#include <linux/uaccess.h>
|
|
#include <sys/types.h>
|
|
#include <sys/kmem.h>
|
|
|
|
typedef struct _buf {
|
|
struct file *fp;
|
|
} _buf_t;
|
|
|
|
extern void *rootdir;
|
|
|
|
extern struct _buf *kobj_open_file(const char *name);
|
|
extern void kobj_close_file(struct _buf *file);
|
|
extern int kobj_read_file(struct _buf *file, char *buf,
|
|
unsigned size, unsigned off);
|
|
extern int kobj_get_filesize(struct _buf *file, uint64_t *size);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif /* SPL_KOBJ_H */
|