patch-2.2.15 linux/include/linux/qnx4_fs.h
Next file: linux/include/linux/qnx4_fs_i.h
Previous file: linux/include/linux/proc_fs.h
Back to the patch index
Back to the overall index
- Lines: 138
- Date:
Fri Apr 21 12:47:01 2000
- Orig file:
v2.2.14/include/linux/qnx4_fs.h
- Orig date:
Sat Aug 14 02:26:01 1999
diff -u --new-file --recursive --exclude-from ../../exclude v2.2.14/include/linux/qnx4_fs.h linux/include/linux/qnx4_fs.h
@@ -2,8 +2,8 @@
* Name : qnx4_fs.h
* Author : Richard Frowijn
* Function : qnx4 global filesystem definitions
- * Version : 1.0
- * Last modified : 23-03-1998
+ * Version : 1.0.2
+ * Last modified : 2000-02-14
*
* History : 23-03-1998 created
*/
@@ -14,7 +14,7 @@
#define QNX4_ROOT_INO 1
-#define _MAX_XTNTS_PER_XBLK 60
+#define QNX4_MAX_XTNTS_PER_XBLK 60
/* for di_status */
#define QNX4_FILE_USED 0x01
#define QNX4_FILE_MODIFIED 0x02
@@ -29,53 +29,55 @@
#define QNX4_VALID_FS 0x0001 /* Clean fs. */
#define QNX4_ERROR_FS 0x0002 /* fs has errors. */
#define QNX4_BLOCK_SIZE 0x200 /* blocksize of 512 bytes */
-#define QNX4_DIR_ENTRY_SIZE 0x040 /* dir entry size */
+#define QNX4_BLOCK_SIZE_BITS 9
+#define QNX4_DIR_ENTRY_SIZE 0x040 /* dir entry size of 64 bytes */
+#define QNX4_DIR_ENTRY_SIZE_BITS 6
#define QNX4_XBLK_ENTRY_SIZE 0x200 /* xblk entry size */
#define QNX4_INODES_PER_BLOCK 0x08 /* 512 / 64 */
/* for filenames */
-#define _SHORT_NAME_MAX 16
-#define QNX4_NAME_MAX 48
+#define QNX4_SHORT_NAME_MAX 16
+#define QNX4_NAME_MAX 48
/*
* This is the original qnx4 inode layout on disk.
*/
struct qnx4_inode_entry {
- char di_fname[16];
- off_t di_size;
- _xtnt_t di_first_xtnt;
- long di_xblk;
- time_t di_ftime;
- time_t di_mtime;
- time_t di_atime;
- time_t di_ctime;
- _nxtnt_t di_num_xtnts;
- mode_t di_mode;
- muid_t di_uid;
- mgid_t di_gid;
- nlink_t di_nlink;
- char di_zero[4];
- _ftype_t di_type;
- unsigned char di_status;
+ char di_fname[QNX4_SHORT_NAME_MAX];
+ qnx4_off_t di_size;
+ qnx4_xtnt_t di_first_xtnt;
+ __u32 di_xblk;
+ __s32 di_ftime;
+ __s32 di_mtime;
+ __s32 di_atime;
+ __s32 di_ctime;
+ qnx4_nxtnt_t di_num_xtnts;
+ qnx4_mode_t di_mode;
+ qnx4_muid_t di_uid;
+ qnx4_mgid_t di_gid;
+ qnx4_nlink_t di_nlink;
+ __u8 di_zero[4];
+ qnx4_ftype_t di_type;
+ __u8 di_status;
};
struct qnx4_link_info {
- char dl_fname[QNX4_NAME_MAX];
- long dl_inode_blk;
- unsigned char dl_inode_ndx;
- unsigned char dl_spare[10];
- unsigned char dl_status;
+ char dl_fname[QNX4_NAME_MAX];
+ __u32 dl_inode_blk;
+ __u8 dl_inode_ndx;
+ __u8 dl_spare[10];
+ __u8 dl_status;
};
struct qnx4_xblk {
- long xblk_next_xblk;
- long xblk_prev_xblk;
- unsigned char xblk_num_xtnts;
- char xblk_spare[3];
- long xblk_num_blocks;
- _xtnt_t xblk_xnts[_MAX_XTNTS_PER_XBLK];
- char xblk_signature[8];
- _xtnt_t xblk_first_xtnt;
+ __u32 xblk_next_xblk;
+ __u32 xblk_prev_xblk;
+ __u8 xblk_num_xtnts;
+ __u8 xblk_spare[3];
+ __s32 xblk_num_blocks;
+ qnx4_xtnt_t xblk_xtnts[QNX4_MAX_XTNTS_PER_XBLK];
+ char xblk_signature[8];
+ qnx4_xtnt_t xblk_first_xtnt;
};
struct qnx4_super_block {
@@ -96,8 +98,8 @@
#endif
extern struct dentry *qnx4_lookup(struct inode *dir, struct dentry *dentry);
-extern unsigned long qnx4_count_free_inodes(struct super_block *sb);
extern unsigned long qnx4_count_free_blocks(struct super_block *sb);
+extern unsigned long qnx4_block_map(struct inode *inode, long iblock);
extern struct buffer_head *qnx4_getblk(struct inode *, int, int);
extern struct buffer_head *qnx4_bread(struct inode *, int, int);
@@ -107,8 +109,8 @@
extern struct inode_operations qnx4_file_inode_operations;
extern struct inode_operations qnx4_dir_inode_operations;
extern struct inode_operations qnx4_symlink_inode_operations;
-extern int qnx4_is_free(struct super_block *sb, int block);
-extern int qnx4_set_bitmap(struct super_block *sb, int block, int busy);
+extern int qnx4_is_free(struct super_block *sb, long block);
+extern int qnx4_set_bitmap(struct super_block *sb, long block, int busy);
extern int qnx4_create(struct inode *inode, struct dentry *dentry, int mode);
extern void qnx4_truncate(struct inode *inode);
extern void qnx4_free_inode(struct inode *inode);
@@ -116,7 +118,7 @@
extern int qnx4_rmdir(struct inode *dir, struct dentry *dentry);
extern int qnx4_sync_file(struct file *file, struct dentry *dentry);
extern int qnx4_sync_inode(struct inode *inode);
-extern int qnx4_bmap(struct inode *inode, int block);
+extern int qnx4_bmap(struct inode *inode, int iblock);
#endif /* __KERNEL__ */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)