Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Stephen Williams <steve@icarus.icarus.com>
Subject: Re: 2.1.86
Date: Sun, 22 Feb 1998 17:31:09 -0800	[thread overview]
Message-ID: <fb2f5502a83b5fc43ffff73e150ee5e4.axp-list@archive.invalid> (raw)

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

             reply	other threads:[~1998-02-23  1:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-02-23  1:31 Stephen Williams [this message]
  -- strict thread matches above, loose matches on Subject: below --
1998-02-23  1:32 2.1.86 Stephen Williams
1998-02-18  9:59 2.1.86 George
1998-02-18  1:36 2.1.86 Murray Stokely
     [not found] <Pine.BSF.3.96.980217165502.23100B-100000@pike.cdrom.com>
1998-02-18  1:29 ` 2.1.86 Jon E. Mitchiner
1998-02-18  0:57 2.1.86 Murray Stokely
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox