<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<META content="MSHTML 6.00.2800.1458" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV>Hello,<BR><BR>I have a question about device number extension in 
"e2fsprogs-1.35".<BR><BR>In Linux kernel 2.6, device number is extended from 
16-bit to 32-bit. All utilities and libraries should make corresponding 
extension for this new feature in kernel 2.6. </DIV>
<DIV>
<DIV> </DIV>
<DIV>Following operation defines type "kdev_t" as "unsigned short" type, thus 
the device number has only 16-bit.<BR>In file lib/ext2fs/jfs_user.h: 
4<BR>        typedef unsigned short kdev_t; 
<BR>In file misc/jfs_user.h: 4<BR>        
typedef unsigned short kdev_t; <BR>In file debugfs/jfs_user.h: 
4<BR>        typedef unsigned short kdev_t; 
<BR>It seems not to correspond to device number extension.I think Kdev_t should 
be defined as 32-bit long int.</DIV>
<DIV> </DIV>
<DIV>The attached patch is for device number extension.</DIV>
<DIV>As following:</DIV>
<DIV> </DIV>
<DIV>--- e2fsprogs-1.35-orig/debugfs/jfs_user.h 2004-08-25 
13:42:41.118920528 -0400<BR>+++ 
e2fsprogs-1.35/debugfs/jfs_user.h 2004-08-25 13:47:00.732453272 -0400<BR>@@ 
-1,7 +1,7 @@<BR> #ifndef _JFS_USER_H<BR> #define 
_JFS_USER_H<BR> <BR>-typedef unsigned short kdev_t;<BR>+typedef unsigned 
long kdev_t;<BR> <BR> #include 
<ext2fs/kernel-jbd.h><BR> <BR>--- 
e2fsprogs-1.35-orig/lib/ext2fs/jfs_user.h 2004-08-25 13:42:41.136917792 
-0400<BR>+++ e2fsprogs-1.35/lib/ext2fs/jfs_user.h 2004-08-25 
13:43:42.790545016 -0400<BR>@@ -1,7 +1,7 @@<BR> #ifndef 
_JFS_USER_H<BR> #define _JFS_USER_H<BR> <BR>-typedef unsigned short 
kdev_t;<BR>+typedef unsigned long kdev_t;<BR> <BR> #include 
"kernel-jbd.h"<BR> <BR>--- 
e2fsprogs-1.35-orig/misc/jfs_user.h 2004-08-25 13:42:41.247900920 
-0400<BR>+++ e2fsprogs-1.35/misc/jfs_user.h 2004-08-25 13:46:38.840781312 
-0400<BR>@@ -1,7 +1,7 @@<BR> #ifndef _JFS_USER_H<BR> #define 
_JFS_USER_H<BR> <BR>-typedef unsigned short kdev_t;<BR>+typedef unsigned 
long kdev_t;<BR> <BR> #include <ext2fs/kernel-jbd.h></DIV>
<DIV> </DIV></DIV>
<DIV>Best Regards,<BR>Wang 
Chen<BR>----------------------------------------------------------<BR>Wang 
Chen<BR>Dept. of Technology and Development<BR>Nanjing Fujitsu Nanda Software 
Tech. Co., Ltd.(FNST)<BR>No. 16-5, Guangzhou Rd., Nanjing, P.R.China 
210008<BR>PHONE  : +86+25-86630523-636<BR>FUJITSU INTERNAL: 
79955-636<BR>FAX  : +86+25-83317685<BR>Mail  : <A 
href="mailto:wangchen@nanjing-fnst.com">wangchen@nanjing-fnst.com</A><BR>----------------------------------------------------------</DIV></BODY></HTML>