Removed header files we'll most likely never use.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@596 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2002-08-05 17:23:23 +00:00
parent dc74f4ac15
commit 24462625e1
2 changed files with 0 additions and 168 deletions

View File

@ -1,51 +0,0 @@
/*
** Copyright 2002, Travis Geiselbrecht. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#ifndef _ZFS_H
#define _ZFS_H
#include <vfs.h>
#include "zfs_fs.h"
/* mount structure */
typedef struct zfs_fs {
fs_id id;
int fd;
void *dev_vnode;
zfs_superblock sb;
} zfs_fs;
/* fs calls */
int zfs_mount(fs_cookie *fs, fs_id id, const char *device, void *args, vnode_id *root_vnid);
int zfs_unmount(fs_cookie fs);
int zfs_sync(fs_cookie fs);
int zfs_lookup(fs_cookie fs, fs_vnode dir, const char *name, vnode_id *id);
int zfs_getvnode(fs_cookie fs, vnode_id id, fs_vnode *v, bool r);
int zfs_putvnode(fs_cookie fs, fs_vnode v, bool r);
int zfs_removevnode(fs_cookie fs, fs_vnode v, bool r);
int zfs_open(fs_cookie fs, fs_vnode v, file_cookie *cookie, stream_type st, int oflags);
int zfs_close(fs_cookie fs, fs_vnode v, file_cookie cookie);
int zfs_freecookie(fs_cookie fs, fs_vnode v, file_cookie cookie);
int zfs_fsync(fs_cookie fs, fs_vnode v);
ssize_t zfs_read(fs_cookie fs, fs_vnode v, file_cookie cookie, void *buf, off_t pos, size_t *len);
ssize_t zfs_write(fs_cookie fs, fs_vnode v, file_cookie cookie, const void *buf, off_t pos, size_t *len);
int zfs_seek(fs_cookie fs, fs_vnode v, file_cookie cookie, off_t pos, seek_type st);
int zfs_ioctl(fs_cookie fs, fs_vnode v, file_cookie cookie, int op, void *buf, size_t len);
int zfs_canpage(fs_cookie fs, fs_vnode v);
ssize_t zfs_readpage(fs_cookie fs, fs_vnode v, iovecs *vecs, off_t pos);
ssize_t zfs_writepage(fs_cookie fs, fs_vnode v, iovecs *vecs, off_t pos);
int zfs_create(fs_cookie fs, fs_vnode dir, const char *name, stream_type st, void *create_args, vnode_id *new_vnid);
int zfs_unlink(fs_cookie fs, fs_vnode dir, const char *name);
int zfs_rename(fs_cookie fs, fs_vnode olddir, const char *oldname, fs_vnode newdir, const char *newname);
int zfs_rstat(fs_cookie fs, fs_vnode v, struct file_stat *stat);
int zfs_wstat(fs_cookie fs, fs_vnode v, struct file_stat *stat, int stat_mask);
#endif

View File

@ -1,117 +0,0 @@
/*
** Copyright 2002, Travis Geiselbrecht. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#ifndef _ZFS_FS_H
#define _ZFS_FS_H
#include <types.h>
typedef int64 inode_num;
typedef int64 block_num;
#define ZFS_SB_MAGIC1 0x23afb490
#define ZFS_SB_MAGIC2 0x343287f4
#define ZFS_SB_OFFSET 1024
#define ZFS_BLOCKSIZE 4096
#define ZFS_INODE_TABLE_INODE 0
#define ZFS_BOOT_INODE 1
#define ZFS_BITMAP_INODE 2
#define ZFS_ROOT_DIR_INODE 3
#define ZFS_RESERVED_INODES 32
#define ZFS_HOST_ENDIAN 0x12345678
#define ZFS_SWAPPED_ENDIAN 0x78563412
#define ZFS_CURRENT_VERSION 1
typedef struct zfs_superblock {
int32 magic1;
int32 version;
int32 endian;
int32 blocksize;
int64 num_blocks;
int64 used_blocks;
block_num boot_code_start;
block_num inode_table_start;
char name[32];
int32 magic2;
} zfs_superblock;
#define ZFS_INODE_SIZE ZFS_BLOCKSIZE
#define ZFS_INODE_MAGIC 0x444f4e49 // 'INOD'
#define ZFS_INODE_FLAG_INUSE 0x1
#define ZFS_INODE_FLAG_PRIMARY 0x2
typedef struct zfs_inode_container {
int32 magic;
int16 flags;
int16 num_attributes;
inode_num num;
/* 0x10 */
inode_num next_spillover_inode;
inode_num primary_inode;
/* 0x20 */
} zfs_inode_container;
typedef struct zfs_attribute_header {
uint32 type;
uint32 len;
uint8 non_resident;
uint8 name_len;
uint16 value_offset;
uint32 filler;
/* 0x10 */
} zfs_attribute_header;
typedef struct zfs_attribute_resident {
uint32 len;
uint16 offset;
uint16 filler;
/* 0x08 */
} zfs_attribute_resident;
typedef struct zfs_attribute_nonresident {
block_num starting_fileblock;
block_num ending_fileblock;
/* 0x10 */
uint16 runlist_offset;
uint16 num_runs;
uint32 filler;
uint64 len;
/* 0x20 */
} zfs_attribute_nonresident;
typedef struct zfs_run {
block_num start;
int64 len;
} zfs_run;
#define ZFS_ATTR_STD_INFO 0x10
#define ZFS_ATTR_DIR 0x20
#define ZFS_ATTR_DATA 0x30
#define ZFS_ATTR_BITMAP 0x40
typedef struct zfs_attr_std_info {
uint64 create_time;
uint64 last_mod_time;
uint64 last_access_time;
} zfs_attr_std_info;
typedef struct zfs_dir_ent {
inode_num inum;
uint16 len;
uint16 name_len;
char name[0];
} zfs_dir_ent;
#endif