From a6dc6a4d4bb89ec3997a72fd084a83147c6e66b6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 26 Sep 2008 15:22:06 +0200 Subject: [PATCH] Applying Suses dosfstools-2.11-unsupported-sector-size.patch from Petr Gajdos to add sector size warning: * added warning for creation msdos on filesystem with sector size greater than 4096 [fate#303325] Signed-off-by: Daniel Baumann --- mkdosfs/mkdosfs.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mkdosfs/mkdosfs.c b/mkdosfs/mkdosfs.c index efc8233..3842630 100644 --- a/mkdosfs/mkdosfs.c +++ b/mkdosfs/mkdosfs.c @@ -1732,6 +1732,11 @@ main (int argc, char **argv) } } + if (sector_size > 4096) + fprintf(stderr, + "Warning: sector size is set to %d > 4096, such filesystem will not propably mount\n", + sector_size); + establish_params (statbuf.st_rdev,statbuf.st_size); /* Establish the media parameters */