From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,3463148ba9755018 X-Google-Attributes: gid111c93,public From: Phillip G Ezolt Subject: Re: UFS in Alpha Linux Date: 1998/03/12 Message-ID: #1/1 X-Deja-AN: 333345477 References: , <6e8g94$6cc$1@info.service.rug.nl> X-Added: With Flames (outnews v2.6) Distribution: world Organization: Senior, Electrical and Computer Engineering, Carnegie Mellon, Pittsburgh, PA Newsgroups: comp.os.linux.alpha Excerpts from netnews.comp.os.linux.alpha: 12-Mar-98 RE: UFS in Alpha Linux by vogt@127.0.0.1 > Hi > > I can not help you with UFS but would like to know what you had to do > to get NTFS access under linux. Maybe you can send me the patches if you have > made changes in the code. > > Bye Paul Paul, Your email address is not valid (127.0.0.1 is loopback), so I am just going to post the patch here. (It's not that big.) I've confirmed this to work on kernel version 2.1.88, but it probably works on others too. Phil ----------------------------------------------------------------------- This patch allows NTFS support to compile on an alpha. I haven't tested it yet, but I though I would throw it out there in case someone else has a bit more spare time then I do. -- 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 ----