[PATCH] Enable NTFS support on loongson

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] Enable NTFS support on loongson

Donovan Watteau
Hello,

The following diff enables NTFS support on loongson.  I've
been using it with external drives on my Yeeloong without any
problem.

Index: src/sbin/mount_ntfs/Makefile
===================================================================
RCS file: /cvs/src/sbin/mount_ntfs/Makefile,v
retrieving revision 1.7
diff -u -p -r1.7 Makefile
--- src/sbin/mount_ntfs/Makefile 9 Dec 2007 19:48:55 -0000 1.7
+++ src/sbin/mount_ntfs/Makefile 3 Oct 2012 20:10:32 -0000
@@ -1,6 +1,7 @@
 # $OpenBSD: Makefile,v 1.7 2007/12/09 19:48:55 martin Exp $
 
-.if (${MACHINE} == "alpha" || ${MACHINE} == "amd64" || ${MACHINE} == "i386")
+.if (${MACHINE} == "alpha" || ${MACHINE} == "amd64" || \
+     ${MACHINE} == "i386" || ${MACHINE} == "loongson")
 PROG= mount_ntfs
 SRCS= mount_ntfs.c getmntopts.c
 .else
Index: sys/arch/loongson/conf/GENERIC
===================================================================
RCS file: /cvs/src/sys/arch/loongson/conf/GENERIC,v
retrieving revision 1.37
diff -u -p -r1.37 GENERIC
--- sys/arch/loongson/conf/GENERIC 27 Sep 2012 14:01:35 -0000 1.37
+++ sys/arch/loongson/conf/GENERIC 3 Oct 2012 20:10:55 -0000
@@ -22,6 +22,8 @@ option WSDISPLAY_COMPAT_RAWKBD # provid
 option PCIVERBOSE
 option USBVERBOSE
 
+option NTFS # NTFS support
+
 config bsd swap generic
 
 #

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Enable NTFS support on loongson

Ted Unangst-6
On Wed, Oct 03, 2012 at 22:26, Donovan Watteau wrote:
> Hello,
>
> The following diff enables NTFS support on loongson.  I've
> been using it with external drives on my Yeeloong without any
> problem.

Honestly, I think we should just enable it everywhere.  You're
unlikely to stick an ntfs disk in your vax, but vnd disk images are
theoretically possible.

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Enable NTFS support on loongson

Brad Smith-14
On Thu, Oct 04, 2012 at 06:29:21PM -0400, Ted Unangst wrote:

> On Wed, Oct 03, 2012 at 22:26, Donovan Watteau wrote:
> > Hello,
> >
> > The following diff enables NTFS support on loongson.  I've
> > been using it with external drives on my Yeeloong without any
> > problem.
>
> Honestly, I think we should just enable it everywhere.  You're
> unlikely to stick an ntfs disk in your vax, but vnd disk images are
> theoretically possible.

The NTFS file system support would need to work on big endian systems
before that would make sense.

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] Enable NTFS support on loongson

Theo de Raadt
> On Thu, Oct 04, 2012 at 06:29:21PM -0400, Ted Unangst wrote:
> > On Wed, Oct 03, 2012 at 22:26, Donovan Watteau wrote:
> > > Hello,
> > >
> > > The following diff enables NTFS support on loongson.  I've
> > > been using it with external drives on my Yeeloong without any
> > > problem.
> >
> > Honestly, I think we should just enable it everywhere.  You're
> > unlikely to stick an ntfs disk in your vax, but vnd disk images are
> > theoretically possible.
>
> The NTFS file system support would need to work on big endian systems
> before that would make sense.

Indeed.  Does someone want to take a shot at this?