From owner-freebsd-fs@FreeBSD.ORG Tue Jul 31 03:57:41 2007 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0F9E016A468 for ; Tue, 31 Jul 2007 03:57:41 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from ns.trinitel.com (186.161.36.72.static.reverse.layeredtech.com [72.36.161.186]) by mx1.freebsd.org (Postfix) with ESMTP id E848613C45A for ; Tue, 31 Jul 2007 03:57:40 +0000 (UTC) (envelope-from anderson@freebsd.org) Received: from proton.local (r74-193-81-203.pfvlcmta01.grtntx.tl.dh.suddenlink.net [74.193.81.203]) (authenticated bits=0) by ns.trinitel.com (8.14.1/8.14.1) with ESMTP id l6V3veGv062031 for ; Mon, 30 Jul 2007 22:57:40 -0500 (CDT) (envelope-from anderson@freebsd.org) Message-ID: <46AEB32E.6050902@freebsd.org> Date: Mon, 30 Jul 2007 22:57:34 -0500 From: Eric Anderson User-Agent: Thunderbird 2.0.0.5 (Macintosh/20070716) MIME-Version: 1.0 To: freebsd-fs@freebsd.org Content-Type: multipart/mixed; boundary="------------090105070400010401040607" X-Spam-Status: No, score=1.2 required=5.0 tests=SUBJ_ALL_CAPS autolearn=no version=3.1.8 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.1.8 (2007-02-13) on ns.trinitel.com Subject: HPFS? [PATCH] X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jul 2007 03:57:41 -0000 This is a multi-part message in MIME format. --------------090105070400010401040607 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, Should we make hpfs actually compile, and add it back to the build? Or, optionally, remove it from the tree? I've attached a patch that makes it compile, adds it to the build, updates the man page, etc. The modules compiles and loads, and seems ok, but I have no hpfs file system to test it against. Can someone test HPFS against a real file system, or at least validate this patch actually works for them too? It probably needs other work too. Eric --------------090105070400010401040607 Content-Type: text/plain; x-mac-type="0"; x-mac-creator="0"; name="hpfs.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="hpfs.patch" Index: sbin/Makefile =================================================================== RCS file: /alt/ncvs/src/sbin/Makefile,v retrieving revision 1.167 diff -u -r1.167 Makefile --- sbin/Makefile 25 Jun 2007 05:06:53 -0000 1.167 +++ sbin/Makefile 13 Jul 2007 02:30:40 -0000 @@ -54,6 +54,7 @@ mksnap_ffs \ mount \ mount_cd9660 \ + mount_hpfs \ mount_msdosfs \ mount_nfs \ mount_ntfs \ Index: sbin/mount_hpfs/Makefile =================================================================== RCS file: /alt/ncvs/src/sbin/mount_hpfs/Makefile,v retrieving revision 1.6 diff -u -r1.6 Makefile --- sbin/mount_hpfs/Makefile 23 Feb 2004 20:13:53 -0000 1.6 +++ sbin/mount_hpfs/Makefile 13 Jul 2007 02:54:32 -0000 @@ -5,10 +5,12 @@ PROG= mount_hpfs SRCS= mount_hpfs.c getmntopts.c MAN= mount_hpfs.8 +DPADD= ${LIBKICONV} +LDADD= -lkiconv MOUNT= ${.CURDIR}/../mount -CFLAGS+=-I${MOUNT} -DHPFS -WARNS?= 0 +CFLAGS+=-I${MOUNT} -I${.CURDIR}/../../ -DHPFS +WARNS?= 6 .PATH: ${MOUNT} Index: sbin/mount_hpfs/mount_hpfs.8 =================================================================== RCS file: /alt/ncvs/src/sbin/mount_hpfs/mount_hpfs.8,v retrieving revision 1.11 diff -u -r1.11 mount_hpfs.8 --- sbin/mount_hpfs/mount_hpfs.8 27 Dec 2002 12:15:32 -0000 1.11 +++ sbin/mount_hpfs/mount_hpfs.8 13 Jul 2007 02:30:01 -0000 @@ -76,9 +76,9 @@ in the file system. .El .Sh EXAMPLES -To mount an hpfs volume located in /dev/wd1s1: +To mount an hpfs volume located in /dev/ad1s1: .Bd -literal -offset indent -# mount_hpfs /dev/wd1s1 /mnt +# mount_hpfs /dev/ad1s1 /mnt .Ed .Sh WRITING There is limited writing ability and it is not well-tested. Index: sbin/mount_hpfs/mount_hpfs.c =================================================================== RCS file: /alt/ncvs/src/sbin/mount_hpfs/mount_hpfs.c,v retrieving revision 1.6 diff -u -r1.6 mount_hpfs.c --- sbin/mount_hpfs/mount_hpfs.c 10 Jun 2005 09:51:41 -0000 1.6 +++ sbin/mount_hpfs/mount_hpfs.c 13 Jul 2007 02:54:50 -0000 @@ -35,7 +35,7 @@ #include #include #include -#include +#include #include #include #include Index: sys/modules/Makefile =================================================================== RCS file: /alt/ncvs/src/sys/modules/Makefile,v retrieving revision 1.535 diff -u -r1.535 Makefile --- sys/modules/Makefile 30 Jun 2007 04:35:34 -0000 1.535 +++ sys/modules/Makefile 13 Jul 2007 02:31:24 -0000 @@ -93,6 +93,7 @@ ${_hfa} \ hifn \ hme \ + hpfs \ ${_hptiop} \ ${_hptmv} \ hwpmc \ --------------090105070400010401040607--