[ftpii] r297 committed - Some NTFS support

1 view
Skip to first unread message

ft...@googlecode.com

unread,
Feb 14, 2010, 5:40:05 AM2/14/10
to ftpii-...@googlegroups.com
Revision: 297
Author: joe.g...@psychlaw.com.au
Date: Sun Feb 14 02:39:08 2010
Log: Some NTFS support

http://code.google.com/p/ftpii/source/detail?r=297

Modified:
/branches/0.0.21/Makefile
/branches/0.0.21/README.txt
/branches/0.0.21/source/fs.c

=======================================
--- /branches/0.0.21/Makefile Fri Feb 12 16:43:48 2010
+++ /branches/0.0.21/Makefile Sun Feb 14 02:39:08 2010
@@ -11,7 +11,7 @@
BUILD = build

CFLAGS = -g -O2 -Wall $(MACHDEP) $(INCLUDE)
-LDFLAGS = -L$(LIBOGC_LIB) -lseeprom -lotp -lisfs -lnandimg -lfst -lwod
-liso -ldi -lwiiuse -lbte -lfat -logc -lm -g $(MACHDEP) -Wl,-Map,$(notdir
$@).map,--section-start,.init=0x80a00000
+LDFLAGS = -L$(LIBOGC_LIB) -lntfs -lseeprom -lotp -lisfs -lnandimg -lfst
-lwod -liso -ldi -lwiiuse -lbte -lfat -logc -lm -g $(MACHDEP)
-Wl,-Map,$(notdir $@).map,--section-start,.init=0x80a00000
PRELOADER_LDFLAGS = -L$(LIBOGC_LIB) -logc -g $(MACHDEP) -Wl,-Map,$(notdir
$@).map

ifneq ($(BUILD),$(notdir $(CURDIR)))
=======================================
--- /branches/0.0.21/README.txt Fri Feb 12 16:43:48 2010
+++ /branches/0.0.21/README.txt Sun Feb 14 02:39:08 2010
@@ -33,7 +33,8 @@

For subversion changes since 0.0.6, see
http://code.google.com/p/ftpii/source/list

-20100213 0.0.21 Added SEEPROM filesystem support at /seeprom (libseeprom).
+20100213 0.0.21 Added NTFS filesystem support (libntfs). (thanks shareese!)
+ Added SEEPROM filesystem support at /seeprom (libseeprom).
Fixed active-mode transfers. (thanks closms!)
20091221 0.0.20 Make release ZIP structure compatible with HBC's new
wiiload.
Attempt to reinitialise network after failure.
=======================================
--- /branches/0.0.21/source/fs.c Fri Feb 12 16:43:48 2010
+++ /branches/0.0.21/source/fs.c Sun Feb 14 02:39:08 2010
@@ -26,7 +26,9 @@
#include <fst/fst.h>
#include <isfs/isfs.h>
#include <iso/iso.h>
+#include <malloc.h>
#include <nandimg/nandimg.h>
+#include <ntfs.h>
#include <ogc/lwp_watchdog.h>
#include <ogc/mutex.h>
#include <ogc/system.h>
@@ -162,6 +164,13 @@
if (initialise_fat()) success = mounted(partition);
} else if (fatMount(partition->mount_point, partition->disc,
0, CACHE_PAGES, CACHE_SECTORS_PER_PAGE)) {
success = true;
+ } else {
+ sec_t *partitions;
+ int partition_count = ntfsFindPartitions(partition->disc,
&partitions);
+ if (partition_count > 0 &&
ntfsMount(partition->mount_point, partition->disc, partitions[0],
CACHE_PAGES, CACHE_SECTORS_PER_PAGE, NTFS_SU)) {
+ success = true;
+ }
+ free(partitions);
}
} else if (is_gecko(partition) && retry_gecko) {
retry_gecko = false;
@@ -199,6 +208,7 @@
if (!dvd_mountWait() && !dvd_last_access()) dvd_stop();
} else if (is_fat(partition)) {
fatUnmount(partition->prefix);
+ ntfsUnmount(partition->mount_point, false);
success = true;
} else if (partition == PA_NAND) {
success = NANDIMG_Unmount();

Reply all
Reply to author
Forward
0 new messages