FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 04-04-2008, 11:32 PM
Holger Levsen
 
Default Bug#474321: Fwd: patch for gpart to support Windows XP NTFS

package: gpart
severity: wishlist
X-Debbugs-CC: <debian.y.h.xu@gmail.com>, davidc@debian.org, debian-devel@lists.debian.org, lyxz_see@163.com

---------- Forwarded Message ----------

Subject: patch for gpart to support Windows XP NTFS
Date: Friday 04 April 2008 16:33
From: "Trace Green" <debian.y.h.xu@gmail.com>
To: michail@brzitwa.de
Cc: davidc@debian.org, debian-devel@lists.debian.org, lyxz_see@163.com

Hello, I hacked gpart, and now gpart v0.1a just support NTFS NT/2000
filesystem, If you use Windows XP, you can not use gpart to try to repair
ntfs filesystem. The patch is very simple, and i have tested Windows XP
profressional with service pack 2. please test the patch in attachment.

-------------------------------------------------------
diff -Nur old/src/gm_ntfs.c new/src/gm_ntfs.c
--- old/src/gm_ntfs.c 2008-04-04 22:23:55.000000000 +0800
+++ new/src/gm_ntfs.c 2008-04-04 22:25:02.000000000 +0800
@@ -73,9 +73,11 @@
return (1);
size = NTFS_GETU64(d->d_sbuf + 0x28);

+#if 0
size /= clusterfactor;
size *= clustersize;
size /= d->d_ssize;
+#endif

/*
* look for an additional backup boot sector at the end of
 

Thread Tools




All times are GMT. The time now is 09:08 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org