summaryrefslogtreecommitdiff
path: root/syslinux.c
diff options
context:
space:
mode:
authorhpa <hpa>1998-02-14 00:26:18 +0000
committerhpa <hpa>1998-02-14 00:26:18 +0000
commite67aea1c0ccd3cc08a9110386d9b75b281941907 (patch)
tree96fc657ed4f184606ac523ac22577d442585488b /syslinux.c
parenta646738f7167df107020e84c482d65e17118f0be (diff)
downloadsyslinux-e67aea1c0ccd3cc08a9110386d9b75b281941907.tar.gz
FAT16 support!!!
Diffstat (limited to 'syslinux.c')
-rw-r--r--syslinux.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/syslinux.c b/syslinux.c
index 0a5afcc2..8874d481 100644
--- a/syslinux.c
+++ b/syslinux.c
@@ -177,6 +177,12 @@ int main(int argc, char *argv[])
device);
exit(1);
}
+ } else if ( !memcmp(sectbuf+bsFileSysType, "FAT16 ", 8) ) {
+ if ( clusters <= 4086 ) {
+ fprintf(stderr, "%s: ERROR: FAT16 but claims less than 4086 clusters\n",
+ device);
+ exit(1);
+ }
} else {
fprintf(stderr, "%s: filesystem type \"%8.8s\" not supported\n",
device, sectbuf+bsFileSysType);