From owner-freebsd-hackers@FreeBSD.ORG Thu Mar 18 09:54:36 2010 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4CBEC106566C for ; Thu, 18 Mar 2010 09:54:36 +0000 (UTC) (envelope-from faust64@gmail.com) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id 911158FC2A for ; Thu, 18 Mar 2010 09:54:35 +0000 (UTC) Received: by bwz8 with SMTP id 8so1908930bwz.3 for ; Thu, 18 Mar 2010 02:54:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:from:date:message-id :subject:to:content-type; bh=cJDMHQqwhtOSw6LNKp1u20LyDzorhNFSMWnYamhPjmw=; b=GpVWni0lhycOMdjcanT46BKp7v+SZ4KAcZzoAPV8XZkvs5F96VHlaHfIhr38pBbfhV SP+0WfYkwaxY8Jhnm1m+PUYQ7yf5FV6J3Vr81wJNuc/fP+u+G0W+0xvv4k0dxxzGPE7m 9atybt9VEO0othZjIVHS54Owok06y4N/etvSs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:from:date:message-id:subject:to:content-type; b=WXYyJMwa513hNrInMzdHs3KnNUaKFrHOyVjoZTrmYR+Bqz/WrwBxEj0dwi26gcUPrN /1FqDEEbZBS5mkFr/5Sha5x2cZIcpR79MXjC2jO0JXz/hPp0857RkgfDRVHkKS0iFj/N Bxt8Qi/KF6vVLOgSfIzSt2Da4NkJMpgommUIA= MIME-Version: 1.0 Received: by 10.204.36.71 with SMTP id s7mr952942bkd.171.1268906074155; Thu, 18 Mar 2010 02:54:34 -0700 (PDT) From: =?ISO-8859-1?Q?Samuel_Mart=EDn_Moro?= Date: Thu, 18 Mar 2010 10:54:14 +0100 Message-ID: To: ports@freebsd.org, freebsd-hackers@freebsd.org Content-Type: multipart/mixed; boundary=00032555af2ecdaaa604821037b8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Subject: ntfsprogs X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Mar 2010 09:54:36 -0000 --00032555af2ecdaaa604821037b8 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi. I made two patches for ntfsprogs. (and btw, I don't know: who's the port mainter? who should I give these patches?) The first one, in libntfs/device.c, adding the correct defines, to get the device geometry. The second one, in ntfsprogs/mkntfs.c, managing character (previously block)devices. Also, the second patch correct an infinite loop, when linking to libublio (and/or its 'bad' use in ntfsprogs): Indeed, using UBLIO_BLOCK_SIZE 262144 may work while working on the entire device. But while working on parts, it may be better to use sector_per_track * sector_size (or something like that...). Otherwise, ublio try to read after the end of the drive. With these patches, mkntfs is correctly working without ublio. And it quite works with ublio (ask for a chkdsk under windows to make the end boot, only if partitionning disk, but I guess one can run UBLIO_BLOCK_SIZE=3D`expr 63 '*' 255` mkntfs $dev to avoid troubles). there's still an other problem I did'nt fix yet: a chkdsk under windows, after formatting with mkntfs, says there's a bad $UpCase file. Indeed, a few differences between the two versions... I'll post the next patch when I'll have time to work on it. Samuel Mart=EDn Moro {EPITECH.} tek4 CamTrace S.A.S sorry for my english... --00032555af2ecdaaa604821037b8--