aboutsummaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorPaulo Alcantara <pcacjr@gmail.com>2011-07-05 21:32:51 +0000
committerPaulo Alcantara <pcacjr@gmail.com>2011-09-07 07:19:05 +0000
commitb0ac906b283b428ba1c7f35fe1e71a84b3d3d9c6 (patch)
treefe5f5498e0dfdf8a0136cd00f0fd79683d691dbd /win
parent67954e370003d9bbfd8b58042669f2e9d532636f (diff)
downloadsyslinux-b0ac906b283b428ba1c7f35fe1e71a84b3d3d9c6.tar.gz
syslinux-b0ac906b283b428ba1c7f35fe1e71a84b3d3d9c6.tar.xz
syslinux-b0ac906b283b428ba1c7f35fe1e71a84b3d3d9c6.zip
Add NTFS filesystem support to Linux and Windows installers
Signed-off-by: Paulo Alcantara <pcacjr@gmail.com>
Diffstat (limited to 'win')
-rw-r--r--win/syslinux.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/win/syslinux.c b/win/syslinux.c
index 0e833d8d..4e4435ef 100644
--- a/win/syslinux.c
+++ b/win/syslinux.c
@@ -254,6 +254,7 @@ int main(int argc, char *argv[])
int ldlinux_sectors;
uint32_t ldlinux_cluster;
int nsectors;
+ int fs_type;
if (!checkver()) {
fprintf(stderr,
@@ -326,8 +327,10 @@ int main(int argc, char *argv[])
exit(1);
}
- /* Check to see that what we got was indeed an MS-DOS boot sector/superblock */
- if ((errmsg = syslinux_check_bootsect(sectbuf))) {
+ /* Check to see that what we got was indeed an FAT/NTFS
+ * boot sector/superblock
+ */
+ if ((errmsg = syslinux_check_bootsect(sectbuf, &fs_type))) {
fprintf(stderr, "%s\n", errmsg);
exit(1);
}
@@ -472,7 +475,7 @@ int main(int argc, char *argv[])
}
/* Make the syslinux boot sector */
- syslinux_make_bootsect(sectbuf);
+ syslinux_make_bootsect(sectbuf, fs_type);
/* Write the syslinux boot sector into the boot sector */
if (opt.bootsecfile) {