From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: X-Archive-Original-Message-ID: <199802230131.RAA04150@icarus.icarus.com> Date: Sun, 22 Feb 1998 17:31:09 -0800 From: Stephen Williams Subject: Re: 2.1.86 murray@cdrom.com said: > I wanted to get NTFS support but the build wouldn't complete until I > took that out of my .config. The enclosed patch allows NTFS support to compile on alpha. It is against the 2.1.85 kernel, and seems to work. (I have a few NTFS partitions for NT/alpha.) -- Steve Williams "The woods are lovely, dark and deep. steve@icarus.com But I have promises to keep, steve@picturel.com and lines to code before I sleep, http://www.picturel.com And lines to code before I sleep." *** linux-2.1.85/fs/ntfs/types.h.dist Mon Feb 9 10:45:40 1998 --- linux-2.1.85/fs/ntfs/types.h Mon Feb 9 10:42:11 1998 *************** typedef unsigned long long ntfs_time64_t *** 46,51 **** --- 46,88 ---- typedef unsigned int ntfs_cluster_t; #endif + #elif defined(__alpha__) + + /* unsigned integral types */ + #ifndef NTFS_INTEGRAL_TYPES + #define NTFS_INTEGRAL_TYPES + typedef unsigned char ntfs_u8; + typedef unsigned short ntfs_u16; + typedef unsigned int ntfs_u32; + typedef unsigned long ntfs_u64; + #endif + + /* unicode character type */ + #ifndef NTFS_WCHAR_T + #define NTFS_WCHAR_T + typedef unsigned short ntfs_wchar_t; + #endif + /* file offset */ + #ifndef NTFS_OFFSET_T + #define NTFS_OFFSET_T + typedef unsigned long ntfs_offset_t; + #endif + /* UTC */ + #ifndef NTFS_TIME64_T + #define NTFS_TIME64_T + typedef unsigned long ntfs_time64_t; + #endif + /* This is really unsigned long long. So we support only volumes up to 2 TB */ + #ifndef NTFS_CLUSTER_T + #define NTFS_CLUSTER_T + typedef unsigned int ntfs_cluster_t; + #endif + + #else + #error Put your machine description here + #endif + + /* Macros reading unsigned integers from a byte pointer */ /* these should work for all little endian machines */ #define NTFS_GETU8(p) (*(ntfs_u8*)(p)) *************** typedef unsigned int ntfs_cluster_t; *** 72,80 **** #define NTFS_PUTS24(p,v) NTFS_PUTU24(p,v) #define NTFS_PUTS32(p,v) NTFS_PUTU32(p,v) - #else - #error Put your machine description here - #endif /* architecture independent macros */ --- 109,114 ---- -- To unsubscribe: send e-mail to axp-list-request@redhat.com with 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com