This is the ntfsrezie tool GPL source code/cvs used by Yats(SUSE) and Diskdrake(MANDRAKE) to make a linux partition over Winxp/Win200x ntfs partition: http://linux-ntfs.bkbits.net:8080/ntfsprogs/anno/ntfsprogs/ntfsresize.c@1.56?nav=index.html|src/|src/ntfsprogs