patch-2.3.35 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

diff -u --recursive --new-file v2.3.34/linux/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.1
+ *  Last modified                : 1999-12-13
  *
  *  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
@@ -34,48 +34,48 @@
 #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;
+	char di_fname[QNX4_SHORT_NAME_MAX];
+	qnx4_off_t di_size;
+	qnx4_xtnt_t di_first_xtnt;
+	unsigned long di_xblk;
 	time_t di_ftime;
 	time_t di_mtime;
 	time_t di_atime;
 	time_t di_ctime;
-	_nxtnt_t di_num_xtnts;
+	qnx4_nxtnt_t di_num_xtnts;
 	mode_t di_mode;
-	muid_t di_uid;
-	mgid_t di_gid;
-	nlink_t di_nlink;
+	qnx4_muid_t di_uid;
+	qnx4_mgid_t di_gid;
+	qnx4_nlink_t di_nlink;
 	char di_zero[4];
-	_ftype_t di_type;
+	qnx4_ftype_t di_type;
 	unsigned char di_status;
 };
 
 struct qnx4_link_info {
 	char dl_fname[QNX4_NAME_MAX];
-	long dl_inode_blk;
+	unsigned long dl_inode_blk;
 	unsigned char dl_inode_ndx;
 	unsigned char dl_spare[10];
 	unsigned char dl_status;
 };
 
 struct qnx4_xblk {
-	long xblk_next_xblk;
-	long xblk_prev_xblk;
+	unsigned long xblk_next_xblk;
+	unsigned 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];
+	qnx4_xtnt_t xblk_xtnts[QNX4_MAX_XTNTS_PER_XBLK];
 	char xblk_signature[8];
-	_xtnt_t xblk_first_xtnt;
+	qnx4_xtnt_t xblk_first_xtnt;
 };
 
 struct qnx4_super_block {
@@ -98,6 +98,7 @@
 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 +108,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 +117,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_get_block(struct inode *inode, long iblock, struct buffer_head *bh, int create);
 
 #endif				/* __KERNEL__ */
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)