From 18794c820f109e6de2e16af0f058b562b0492cbc Mon Sep 17 00:00:00 2001 From: Matt Mower Date: Wed, 11 Nov 2015 16:22:45 -0600 Subject: Update dosfstools * Version 3.0.28 * Update filenames in source * Remove unnecessary symlink to fsck * Commit "Recode short filenames from DOS codepage (default 437)." has been reverted since we do not have access to iconv * Commits cherry-picked on top of 3.0.28: - mkfs.fat: fix incorrect int type - Prevent out of bound array read in date_dos2unix() Change-Id: I50310235c62ec2e6bc90afcd10f2814d3afb5113 --- dosfstools/Android.mk | 50 +- dosfstools/ChangeLog | 1682 ++++++++++++++++++++++++--- dosfstools/Makefile | 136 ++- dosfstools/VERSION | 1 + dosfstools/doc/ANNOUNCE.mkdosfs | 2 +- dosfstools/doc/README.dosfsck | 4 +- dosfstools/doc/README.mkdosfs | 4 +- dosfstools/man/dosfsck.8 | 112 -- dosfstools/man/dosfslabel.8 | 29 - dosfstools/man/mkdosfs.8 | 224 ---- dosfstools/manpages/Makefile | 50 + dosfstools/manpages/bin/update-version.sh | 55 + dosfstools/manpages/de/fatlabel.de.8 | 68 ++ dosfstools/manpages/de/fsck.fat.de.8 | 189 ++++ dosfstools/manpages/de/mkfs.fat.de.8 | 172 +++ dosfstools/manpages/en/fatlabel.8 | 65 ++ dosfstools/manpages/en/fsck.fat.8 | 206 ++++ dosfstools/manpages/en/mkfs.fat.8 | 178 +++ dosfstools/manpages/po/de/fatlabel.8.po | 173 +++ dosfstools/manpages/po/de/fsck.fat.8.po | 559 +++++++++ dosfstools/manpages/po/de/mkfs.fat.8.po | 481 ++++++++ dosfstools/manpages/po4a.cfg | 5 + dosfstools/manpages/pot/fatlabel.8.pot | 176 +++ dosfstools/manpages/pot/fsck.fat.8.pot | 562 +++++++++ dosfstools/manpages/pot/mkfs.fat.8.pot | 484 ++++++++ dosfstools/src/boot.c | 226 ++-- dosfstools/src/boot.h | 4 +- dosfstools/src/check.c | 184 +-- dosfstools/src/check.h | 7 +- dosfstools/src/common.c | 9 +- dosfstools/src/common.h | 11 +- dosfstools/src/dosfsck.c | 224 ---- dosfstools/src/dosfsck.h | 218 ---- dosfstools/src/dosfslabel.c | 128 --- dosfstools/src/fat.c | 107 +- dosfstools/src/fat.h | 21 +- dosfstools/src/fatlabel.c | 144 +++ dosfstools/src/file.c | 12 +- dosfstools/src/file.h | 5 +- dosfstools/src/fsck.fat.c | 215 ++++ dosfstools/src/fsck.fat.h | 191 ++++ dosfstools/src/io.c | 16 +- dosfstools/src/io.h | 11 +- dosfstools/src/lfn.c | 62 +- dosfstools/src/lfn.h | 3 +- dosfstools/src/mkdosfs.c | 1733 ---------------------------- dosfstools/src/mkfs.fat.c | 1754 +++++++++++++++++++++++++++++ dosfstools/src/msdos_fs.h | 61 + dosfstools/src/version.h | 7 +- 49 files changed, 7832 insertions(+), 3188 deletions(-) create mode 100644 dosfstools/VERSION delete mode 100644 dosfstools/man/dosfsck.8 delete mode 100644 dosfstools/man/dosfslabel.8 delete mode 100644 dosfstools/man/mkdosfs.8 create mode 100644 dosfstools/manpages/Makefile create mode 100755 dosfstools/manpages/bin/update-version.sh create mode 100644 dosfstools/manpages/de/fatlabel.de.8 create mode 100644 dosfstools/manpages/de/fsck.fat.de.8 create mode 100644 dosfstools/manpages/de/mkfs.fat.de.8 create mode 100644 dosfstools/manpages/en/fatlabel.8 create mode 100644 dosfstools/manpages/en/fsck.fat.8 create mode 100644 dosfstools/manpages/en/mkfs.fat.8 create mode 100644 dosfstools/manpages/po/de/fatlabel.8.po create mode 100644 dosfstools/manpages/po/de/fsck.fat.8.po create mode 100644 dosfstools/manpages/po/de/mkfs.fat.8.po create mode 100644 dosfstools/manpages/po4a.cfg create mode 100644 dosfstools/manpages/pot/fatlabel.8.pot create mode 100644 dosfstools/manpages/pot/fsck.fat.8.pot create mode 100644 dosfstools/manpages/pot/mkfs.fat.8.pot delete mode 100644 dosfstools/src/dosfsck.c delete mode 100644 dosfstools/src/dosfsck.h delete mode 100644 dosfstools/src/dosfslabel.c create mode 100644 dosfstools/src/fatlabel.c create mode 100644 dosfstools/src/fsck.fat.c create mode 100644 dosfstools/src/fsck.fat.h delete mode 100644 dosfstools/src/mkdosfs.c create mode 100644 dosfstools/src/mkfs.fat.c create mode 100644 dosfstools/src/msdos_fs.h (limited to 'dosfstools') diff --git a/dosfstools/Android.mk b/dosfstools/Android.mk index 67cc5df92..b241a738c 100644 --- a/dosfstools/Android.mk +++ b/dosfstools/Android.mk @@ -2,53 +2,51 @@ ifneq ($(TARGET_SIMULATOR),true) LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) -LOCAL_SRC_FILES := src/boot.c src/check.c src/common.c \ - src/fat.c src/file.c src/io.c src/lfn.c src/dosfsck.c -#LOCAL_C_INCLUDES := $(KERNEL_HEADERS) +LOCAL_SRC_FILES := \ + src/boot.c \ + src/check.c \ + src/common.c \ + src/fat.c \ + src/file.c \ + src/io.c \ + src/lfn.c \ + src/fsck.fat.c + LOCAL_SHARED_LIBRARIES := libc LOCAL_CFLAGS += -D_USING_BIONIC_ LOCAL_CFLAGS += -DUSE_ANDROID_RETVALS -LOCAL_MODULE = dosfsck +LOCAL_MODULE = fsck.fat LOCAL_MODULE_TAGS := optional LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin include $(BUILD_EXECUTABLE) -# build symlink -SYMLINKS := $(addprefix $(TARGET_RECOVERY_ROOT_OUT)/sbin/,fsck_msdos) -$(SYMLINKS): DOSFSCK_BINARY := $(LOCAL_MODULE) -$(SYMLINKS): $(LOCAL_INSTALLED_MODULE) $(LOCAL_PATH)/Android.mk - @echo "Symlink: $@ -> $(DOSFSCK_BINARY)" - @mkdir -p $(dir $@) - @rm -rf $@ - $(hide) ln -sf $(DOSFSCK_BINARY) $@ - include $(CLEAR_VARS) -LOCAL_MODULE := fsck_msdos_symlink -LOCAL_MODULE_TAGS := optional -LOCAL_ADDITIONAL_DEPENDENCIES := $(SYMLINKS) -include $(BUILD_PHONY_PACKAGE) -SYMLINKS := +LOCAL_SRC_FILES := \ + src/boot.c \ + src/check.c \ + src/common.c \ + src/fat.c \ + src/file.c \ + src/io.c \ + src/lfn.c \ + src/fatlabel.c -include $(CLEAR_VARS) -LOCAL_SRC_FILES := src/boot.c src/check.c src/common.c src/fat.c \ - src/file.c src/io.c src/lfn.c src/dosfslabel.c -#LOCAL_C_INCLUDES := $(KERNEL_HEADERS) LOCAL_C_INCLUDES += bionic/libc/kernel/common LOCAL_SHARED_LIBRARIES := libc LOCAL_CFLAGS += -D_USING_BIONIC_ -LOCAL_MODULE = dosfslabel +LOCAL_MODULE = fatlabel LOCAL_MODULE_TAGS := optional LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin include $(BUILD_EXECUTABLE) include $(CLEAR_VARS) -LOCAL_SRC_FILES := src/mkdosfs.c -#LOCAL_C_INCLUDES := $(KERNEL_HEADERS) +LOCAL_SRC_FILES := src/mkfs.fat.c + LOCAL_SHARED_LIBRARIES := libc LOCAL_CFLAGS += -D_USING_BIONIC_ -LOCAL_MODULE = mkdosfs +LOCAL_MODULE = mkfs.fat LOCAL_MODULE_TAGS := optional LOCAL_MODULE_CLASS := RECOVERY_EXECUTABLES LOCAL_MODULE_PATH := $(TARGET_RECOVERY_ROOT_OUT)/sbin diff --git a/dosfstools/ChangeLog b/dosfstools/ChangeLog index b8dc2e010..f6a1e3da9 100644 --- a/dosfstools/ChangeLog +++ b/dosfstools/ChangeLog @@ -1,4 +1,1150 @@ -commit 2e20319843ea85d77c51a9ce9a9b278662426d98 +commit ad1342e +Author: Andreas Bombe +Date: Sat May 16 02:10:18 2015 +0200 + + manpages: Mark MT and ME tags as untranslated for po4a + + Signed-off-by: Andreas Bombe + +commit 3ed9ec2 +Author: Andreas Bombe +Date: Sun May 10 19:59:02 2015 +0200 + + mkfs: Small changes to FAT32 cluster size selection + + Put the cluster size selection back in line with the table used in + Microsoft's fatgen103.pdf and fix the comment. This only involved + changing some comparison operators, all values stayed the same. + + Signed-off-by: Andreas Bombe + +commit 9984552 +Author: Andreas Bombe +Date: Mon Apr 20 23:41:34 2015 +0200 + + fsck: Mention -r is default in usage message + + Signed-off-by: Andreas Bombe + +commit 3eaca68 +Author: Andreas Bombe +Date: Mon Apr 20 23:30:56 2015 +0200 + + manpages: Remove obsolete information about Linux FAT support + + Signed-off-by: Andreas Bombe + +commit a5e34de +Author: Andreas Bombe +Date: Thu Apr 16 23:16:08 2015 +0200 + + manpages: Convert the rest of argument placeholders to upper case + + Signed-off-by: Andreas Bombe + +commit 2303765 +Author: Andreas Bombe +Date: Thu Apr 16 22:51:20 2015 +0200 + + manpages: Fix formatting + + Make the manpages conform to the rules for groff sources. First, + eliminate empty lines because these create vertical spaces where it + isn't desired. Man page sources should not contain empty lines. Second, + put a line break between sentences in a paragraph. A period is + recognized and formatted as a full stop period only when a line break + comes right after it. + + Signed-off-by: Andreas Bombe + +commit d3969b8 +Author: Andreas Bombe +Date: Fri Apr 10 20:32:50 2015 +0200 + + fsck: Verify first cluster of a file is not 1 + + Previously the FAT was checked for any out of bounds entries which were + cleared. However the first cluster of a file, as specified in its + directory entry, was not verified to not be 1. + + In addition to missing this filesystem error, code that correctly + assumes the FAT contained no bad entries anymore could still look up + invalid table indices depending on the value stored in entry 1. With + the right values and FAT size this can lead to a segfault by accessing + unallocated memory. + + Now test_file() will ignore files where the first cluster equals 1 and + an additional check in check_file() will truncate them. + + This bug was reported in http://bugs.debian.org/773885 by Jakub Wilk. + + Signed-off-by: Andreas Bombe + +commit 2a56575 +Author: Andreas Bombe +Date: Thu Apr 2 23:35:00 2015 +0200 + + Simplify synopses of man pages + + Since there is only one mode of invocation for the tools, it is + somewhat pointless to list every possible option in the synopsis. + + Fix a few style inconsistencies in addition, specifically that + placeholders for option arguments are in capital letters and should be + shown where the option is described. + + Signed-off-by: Andreas Bombe + +commit 40f1436 +Author: Andreas Bombe +Date: Wed Apr 1 20:55:58 2015 +0200 + + Update homepage and maintainer sections of man pages + + Signed-off-by: Andreas Bombe + +commit 0169db8 +Author: Andreas Bombe +Date: Wed Apr 1 20:05:01 2015 +0200 + + mkfs: Show a clearer message that file already exists with -C + + Signed-off-by: Andreas Bombe + +commit 2967e27 +Author: Andreas Bombe +Date: Mon Mar 30 21:12:51 2015 +0200 + + mkfs: Remove O_TRUNC from file creation call + + open() is called with O_EXCL | O_CREAT, so it will definitely create a + new, empty file or error out. O_TRUNC is superfluous and may be harmless + in practice but its effect under these circumstances is unspecified. + + Signed-off-by: Andreas Bombe + +commit 90612df +Author: Andreas Bombe +Date: Mon Mar 30 21:09:51 2015 +0200 + + mkfs: Use ftruncate() for expanding created file + + Signed-off-by: Andreas Bombe + +commit 58e8e09 +Author: Andreas Bombe +Date: Tue Mar 24 21:32:40 2015 +0100 + + mkfs: Add --invariant option + + The --invariant option is designed to prevent random or time based + differences to end up in generated filesystems so that multiple runs + generate on the same file or device create completely identical results. + + This is intended for debugging or regression testing of mkfs.fat. + + Signed-off-by: Andreas Bombe + +commit 354feaf +Author: Andreas Bombe +Date: Thu Mar 19 21:35:21 2015 +0100 + + mkfs: Add long option parsing + + Add long option parsing with getopt_long() to mkfs and define --help as + the first long option. The usage() function now takes an exit code + parameter so that the --help option handling can exit the program with + a success exit code. + + Signed-off-by: Andreas Bombe + +commit b611549 +Author: Andreas Bombe +Date: Mon Mar 16 21:08:35 2015 +0100 + + Do not expect EOF as return value of getopt() + + Signed-off-by: Andreas Bombe + +commit a41fc32 +Author: Andreas Bombe +Date: Wed Mar 11 21:45:04 2015 +0100 + + fsck.fat: Fix read beyond end of array on FAT12 + + When a FAT12 filesystem contains an odd number of clusters, setting the + last cluster with set_fat() will trigger a read of the next entry, + which does not exist in the fat array allocated for this. + + Round up the allocation to an even number of FAT entries for FAT12 so + that this is fixed without introducing special casing in get_fat(). + + Signed-off-by: Andreas Bombe + +commit e18d72f +Author: Álvaro Fernández Rojas +Date: Sat Mar 7 13:23:23 2015 +0100 + + Remove linux/msdos_fs.h includes + + Signed-off-by: Álvaro Fernández Rojas + Signed-off-by: Andreas Bombe + +commit 245d0cc +Author: Álvaro Fernández Rojas +Date: Thu Feb 26 19:22:54 2015 +0100 + + Remove non standard int types + + Signed-off-by: Álvaro Fernández Rojas + Signed-off-by: Andreas Bombe + +commit 628b3ec +Author: Álvaro Fernández Rojas +Date: Thu Feb 26 19:41:19 2015 +0100 + + Improve .gitignore + + Signed-off-by: Álvaro Fernández Rojas + Signed-off-by: Andreas Bombe + +commit 02b5a6d +Author: Álvaro Fernández Rojas +Date: Thu Feb 26 12:51:23 2015 +0100 + + Makefile: avoid using install -D + + OS X and FreeBSD are not compatible with this option + + Signed-off-by: Álvaro Fernández Rojas + Signed-off-by: Andreas Bombe + +commit fb6aea6 +Author: Álvaro Fernández Rojas +Date: Thu Feb 26 12:50:57 2015 +0100 + + Makefile: fix typo in uninstall-man + + Signed-off-by: Álvaro Fernández Rojas + Signed-off-by: Andreas Bombe + +commit 357ab07 +Author: Andreas Bombe +Date: Thu Feb 19 21:22:54 2015 +0100 + + fsck.fat: Make -r option default + + Default mode is now to interactively repair with the option to write + the changes back at the end (like the -r option) instead of the previous + default mode of interactively correcting but never writing back the + changes. + + The -r option continues to be recognized by fsck.fat. + + Signed-off-by: Andreas Bombe + +commit 266a5fc +Author: Andreas Bombe +Date: Fri Feb 20 03:19:28 2015 +0100 + + mkfs.fat: Allow 0xF0 to be specified as media byte + + Let the -M option accept 0xF0, which should be the proper descriptor + byte for 3.5" 1.44 MB and 2.88 MB floppies. + + Also split the error reporting for -M between badly formatted and + invalid numbers. + + Signed-off-by: Andreas Bombe + +commit 16e97e9 +Author: Andreas Bombe +Date: Wed Jan 28 15:07:18 2015 +0100 + + Make all char* that may take literals const + + Every char* variable or function argument that may be given a literal + string is now made const. Additionally add -Wwrite-strings to CFLAGS to + enable a warning where const would be missing. + + Signed-off-by: Andreas Bombe + +commit 8b8948c +Author: Andreas Bombe +Date: Mon Dec 29 18:24:54 2014 +0100 + + mkfs.fat.c: Use unsigned char for binary data + + Simple char technically works for the dummy_boot_jump variables, but + some compiler warning settings would give a warning over a signed char + overflowing with the values given as initializers. + + Signed-off-by: Andreas Bombe + +commit 45aeed0 +Author: Andreas Bombe +Date: Sun Nov 16 19:49:22 2014 +0100 + + Fix indentation of "fix power loss damage" commit + + I fixed the (sometimes misleading) indentation of the code introduced in + commit 6893c45 to be in line with the reset of the code and also removed + the /* PATCH ED+DL */ comments which are quite meaningless to the wider + world. + + Signed-off-by: Andreas Bombe + +commit 75c5446 +Author: Andreas Bombe +Date: Sat Nov 15 16:48:48 2014 +0100 + + Add tags and editor backup files to .gitignore + + Signed-off-by: Andreas Bombe + +commit cb98ae2 (tag: v3.0.27) +Author: Andreas Bombe +Date: Wed Nov 12 01:10:23 2014 +0100 + + Releasing version 3.0.27. + + Signed-off-by: Andreas Bombe + +commit e2c8f06 +Author: Andreas Bombe +Date: Wed Nov 12 00:22:17 2014 +0100 + + fsck.fat: Don't print version string every time -v is encountered + + Remove the printing of the version string every time -v is seen during + command line parsing in fsck.fat. The version string is printed anyway + before opening the filesystem device/image. + + Signed-off-by: Andreas Bombe + +commit 82076b6 +Author: Andreas Bombe +Date: Tue Nov 11 23:25:30 2014 +0100 + + Fix attempt to rename root dir in fsck due to uninitialized fields + + When add_file() is called with offset 0, it will construct a DIR_ENT for + the root directory instead of reading the contents from the filesystem. + It did not initialize the whole DIR_ENT on the stack, just select + values. + + In particular, the lcase field was left with an undefined value. If + that value happened to include the FAT_NO_83NAME bit, the "neither long + nor short file name" check in bad_name() added in 3.0.26 would trigger + and cause an attempt to rename the entry (which is not possible). + Example run: + + $ /sbin/fsck.fat -y bad.img + fsck.fat 3.0.26 (2014-03-07) + / + Bad short file name (). + Auto-renaming it. + Renamed to + bad.img: 14 files, 19388/403266 clusters + + This commit changes the initialization zeroize the whole struct before + setting individual fields. Thanks to AlexisM, who found the cause and + posted a patch on the Debian bug http://bugs.debian.org/764992 . + + Signed-off-by: Andreas Bombe + +commit c24ecb6 +Author: Andreas Bombe +Date: Tue Nov 11 22:49:50 2014 +0100 + + Support long file names in volume labeling code + + The code to find the volume label directory entry in find_volume_de() + did not consider long file names so far. Directory entries that make up + long file names have four attribute bits set, including the "volume" + bit. + + This caused the code to mistake a directory entry that is part of a + long file name as the volume name entry. If such an entry is found + first, fatlabel would print garbage when asked to display the label and + mangle the long file name when asked to set it. The latter would lead + to the loss of the long file name and require a fsck to clean up. + + Change so that the set of attributes equal that of LFN entries will no + langer match as a volume label. + + Signed-off-by: Andreas Bombe + +commit 1646f6e (tag: v3.0.26) +Author: Daniel Baumann +Date: Fri Mar 7 18:40:13 2014 +0100 + + Releasing version 3.0.26. + + Signed-off-by: Daniel Baumann + +commit 6893c45 +Author: Dir Lotter +Date: Fri Mar 7 18:25:39 2014 +0100 + + Fix "odd" files created by frequent power-loss. + + After running many power losses the filesystem can degrate, containing "odd" + files making the filesystem corrupt that could not be solved by fsck: + + * file was not visible in a ls -l + * ls -i reported a "invalid file name" on the console + * a test program with diropen/dirread showed the file, a stat on this file + failed + * file was not accessible and could not be deleted + + After digging into the code we found why fsck didn't repair the file system: + One thing was we don't have short filenames. Another issue was that the LFN + pointer was set to NULL and so it looked like we didn't have short and long + filenames. + + Our patch of check.c includes: + + * returns 1 from function bad_name() in case no short and no long filename + exist + * auto_rename() and rename_file() got a special handling for the case no short + file name exist: + - it enables the short file name (we think here was a weakness of the old + code: it changed the short filename but didn't enabled it in the + file->dir_ent.lcase entry) + - it reset all attributes except ATTR_DIR and ATTR_VOLUME + + This solved our problem pretty well. + + Signed-off-by: Daniel Baumann + +commit 621e11f +Author: Natanael Copa +Date: Sat Feb 8 18:53:30 2014 +0100 + + Build fixes for musl libc. + + Signed-off-by: Daniel Baumann + +commit 52588b7 (tag: v3.0.25) +Author: Daniel Baumann +Date: Fri Jan 17 07:11:11 2014 +0100 + + Releasing version 3.0.25. + + Signed-off-by: Daniel Baumann + +commit acf64ae +Author: Daniel Baumann +Date: Fri Jan 17 07:09:54 2014 +0100 + + Updating copyright headers for 2014. + + Signed-off-by: Daniel Baumann + +commit 21fe921 +Author: Andrew Tridgell +Date: Tue Jan 14 09:37:51 2014 +1100 + + Fixed remaining 64 bit build warnings. + + Some of these may be real bugs. + + Signed-off-by: Daniel Baumann + +commit 9e3a2b1 +Author: Andrew Tridgell +Date: Tue Jan 14 09:25:28 2014 +1100 + + Prevent corruption of FAT during fsck on 64 bit platforms. + + unsigned long is 64 bit on x86-64, which means set_fat was writing two + entries, which corrupts the next entry. This can cause loss of data in + another file. + + Signed-off-by: Daniel Baumann + +commit 0d2c9bc (tag: v3.0.24) +Author: Daniel Baumann +Date: Sat Nov 23 10:36:55 2013 +0100 + + Releasing version 3.0.24. + + Signed-off-by: Daniel Baumann + +commit 55bd7b7 +Author: Jaroslav Skarvada +Date: Sat Nov 23 10:34:48 2013 +0100 + + Fixed dosfsck on big endian platforms (Resolves: rhbz#1029695). + + It seems there is problem in the double conversion on big endians. + The first conversion is done by the explicit conversion to __u16 + in the GET_UNALIGNED_W macro, so the secondary conversion by le16toh + seems to be redundant (and wrong). + + Signed-off-by: Daniel Baumann + +commit 6debb4a (tag: v3.0.23) +Author: Daniel Baumann +Date: Tue Oct 15 08:05:46 2013 +0200 + + Releasing version 3.0.23. + + Signed-off-by: Daniel Baumann + +commit 07d85ff +Author: Daniel Baumann +Date: Tue Oct 15 08:04:11 2013 +0200 + + Reformating mkfs.fat manpage. + + Signed-off-by: Daniel Baumann + +commit 137552f +Author: Michael Shigorin +Date: Tue Oct 15 01:29:33 2013 +0400 + + Fixing "Fixing default sectors per cluster for FAT32" for UEFI. + + FAT32 "EFI System Partition" is basically required for UEFI boot; + commit ge048a8d broke that for me with both virtualbox-4.2 and + real hardware (ASUS C60M1-I to be exact) given ~250Mb filesystem. + + This commit amends that one by reverting its effects for these + small sizes by restoring 512b cluster size for <= 260Mb FAT32. + + Signed-off-by: Daniel Baumann + +commit 2000696 +Author: Daniel Baumann +Date: Fri Aug 9 09:38:13 2013 +0200 + + Also allowing lowercase labels in mkfs (with warning message) consistent with the recent fsck change, thanks to Michael Baum . + + Signed-off-by: Daniel Baumann + +commit 9b04807 +Author: Tim Harder +Date: Fri Jul 19 18:15:21 2013 +0200 + + Add install-man dependency to install-symlinks Makefile target. + + This fixes a race condition during parallel installs where man page + symlinks won't be installed because install-man hasn't been run yet. + + Signed-off-by: Daniel Baumann + +commit 651f91c (tag: v3.0.22) +Author: Daniel Baumann +Date: Fri Jul 19 07:01:19 2013 +0200 + + Releasing version 3.0.22. + + Signed-off-by: Daniel Baumann + +commit 3dc5560 +Author: Daniel Baumann +Date: Fri Jul 19 06:55:24 2013 +0200 + + Addding install-symlinks target to phony targets in Makefile. + + Signed-off-by: Daniel Baumann + +commit c6c0581 +Author: Daniel Baumann +Date: Fri Jul 19 06:55:00 2013 +0200 + + Adding uninstall-symlinks target in Makefile. + + Signed-off-by: Daniel Baumann + +commit 465dd8c +Author: Daniel Baumann +Date: Fri Jul 19 06:45:40 2013 +0200 + + Allowing fatlabel to write labels in all lowercase but give a warning about DOS/Windows (Closes: #714971). + + Signed-off-by: Daniel Baumann + +commit 3621b30 +Author: John S Gruber +Date: Fri Jul 19 06:40:21 2013 +0200 + + Add options and make dos boot sector more compatible with reference system (Closes: #552673). + + Unless overridden by the user sets the DOS boot sector's + hidden-sectors field to match the start of a hard disk's + partition. + + Initialize DOS boot sector drive_number according to FAT media type + Addresses LP: #398241 and Debian #552673 + + Adds options to override the DOS boot sector device_number and + the FAT media type. + + Signed-off-by: Daniel Baumann + +commit be1eed5 +Author: Daniel Baumann +Date: Wed Jul 17 12:52:20 2013 +0200 + + Correcting wrong check preventing installation of fatlabel legacy manpage symlink. + + Signed-off-by: Daniel Baumann + +commit d0065d3 (tag: v3.0.21) +Author: Daniel Baumann +Date: Tue Jul 16 08:34:28 2013 +0200 + + Releasing version 3.0.21. + + Signed-off-by: Daniel Baumann + +commit a74c12c +Author: Jaroslav Skarvada +Date: Tue Jun 25 14:53:14 2013 +0200 + + Adding the missing -p option to the fsck manpage (to be consistent with the output of the tool). + + Signed-off-by: Daniel Baumann + +commit 25e03c9 +Author: Patrick J. Volkerding +Date: Mon Jun 24 14:23:00 2013 +0200 + + Using $MANDIR instead of hardcoded ${PREFIX}/share/man in the Makefile. + + Signed-off-by: Daniel Baumann + +commit 7fd9cf7 +Author: Daniel Baumann +Date: Fri Jun 14 18:50:31 2013 +0200 + + Making install-symlinks Makefile target depend on install-bin to not break when using make in parallel, thanks to David Walser . + + Signed-off-by: Daniel Baumann + +commit a76bbcd +Author: Daniel Baumann +Date: Wed Jun 12 13:00:10 2013 +0200 + + Using US digit date format in version date, rather than name abbrev. + + Signed-off-by: Daniel Baumann + +commit a64195f (tag: v3.0.20) +Author: Daniel Baumann +Date: Wed Jun 12 12:25:32 2013 +0200 + + Releasing version 3.0.20. + + Signed-off-by: Daniel Baumann + +commit 1a5d99f +Author: Daniel Baumann +Date: Wed Jun 12 12:07:58 2013 +0200 + + Softening message about different boot sectors a bit (Closes: #704198). + + Signed-off-by: Daniel Baumann + +commit 4727286 +Author: Daniel Baumann +Date: Wed Jun 12 11:42:52 2013 +0200 + + Harmonizing program name output. + + Signed-off-by: Daniel Baumann + +commit 17c956c +Author: Martin Wilck +Date: Wed Jun 12 11:38:00 2013 +0200 + + Don't align FAT to cluster size. + + See previous patch for explanation. + + With this patch and the previous two, the + mkdosfs generated FAT32 file systems work well in my extremely + picky TechniSat device. Of course, they're also detected cleanly + by Linux and Windows. + + Signed-off-by: Daniel Baumann + +commit d63e0d6 +Author: Martin Wilck +Date: Wed Jun 12 11:36:08 2013 +0200 + + Don't align FAT32 reserved sectors to cluster size. + + For certain file system sizes (in particular, exact GB sizes - + don't ask me why) a Technisat HD S2 Plus DVB receiver will still + choke on mkdosfs generated file systems, even if the sectors per + cluster problem is fixed. + + By comparing the properties of generated FAT32 FS with results + of the Windows tool "h2format" (www.heise.de/download/h2format.html), + I found that the remaining problems were caused by rounding of the + reserved sectors and FAT space to cluster size (the h2format tool + doesn't do this). + + Signed-off-by: Daniel Baumann + +commit e048a8d +Author: Martin Wilck +Date: Wed Jun 12 11:33:33 2013 +0200 + + Fixing default sectors per cluster for FAT32 (Closes: #690062). + + The default sectors per cluster calculated by mkdosfs are outdated, + see http://technet.microsoft.com/en-us/library/cc938438.aspx. + + The deviations may cause some 3rd party devices (e.g. TechniSat DVB + receivers) to hang when reading mkdosfs generated file systems. + + Signed-off-by: Daniel Baumann + +commit 86509aa +Author: Daniel Baumann +Date: Tue Jun 11 20:19:09 2013 +0200 + + Splitting out legacy symlink creation in toplevel Makefile to own target. + + Signed-off-by: Daniel Baumann + +commit da37dd1 +Author: Daniel Baumann +Date: Wed Jun 12 11:29:12 2013 +0200 + + Correcting wrong toolname in fsck.fat. + + Signed-off-by: Daniel Baumann + +commit b29a722 +Author: Daniel Baumann +Date: Tue Jun 11 19:51:47 2013 +0200 + + Consistently spelling filesystem as filesystem, and not file system. + + Signed-off-by: Daniel Baumann + +commit 977d7aa +Author: Daniel Baumann +Date: Tue Jun 11 19:30:19 2013 +0200 + + Removing Debian reference in GPL license headers. + + Signed-off-by: Daniel Baumann + +commit 5505cc2 (tag: v3.0.19) +Author: Daniel Baumann +Date: Tue Jun 11 18:46:03 2013 +0200 + + Releasing version 3.0.19. + + Signed-off-by: Daniel Baumann + +commit 2c88f35 +Author: Daniel Baumann +Date: Tue Jun 11 18:44:50 2013 +0200 + + Running indent on source files. + + Signed-off-by: Daniel Baumann + +commit d495d43 +Author: Daniel Baumann +Date: Tue Jun 11 18:41:41 2013 +0200 + + Using memcpy instead of strcpy to fix segfault with fortify, thanks to Dave Reisner . + + Signed-off-by: Daniel Baumann + +commit 9fb4ffc +Author: Daniel Baumann +Date: Sun Jun 9 13:17:16 2013 +0200 + + Correcting fsck.fat spelling error in manpages, thanks to E.J.M. Hartman . + + Signed-off-by: Daniel Baumann + +commit 2d8ef9b (tag: v3.0.18) +Author: Daniel Baumann +Date: Thu Jun 6 09:49:00 2013 +0200 + + Releasing version 3.0.18. + + Signed-off-by: Daniel Baumann + +commit d4e1180 +Author: Daniel Baumann +Date: Thu Jun 6 09:38:45 2013 +0200 + + Adding initial i18n support for manpages with po4a. + + Signed-off-by: Daniel Baumann + +commit ea8f712 +Author: Daniel Baumann +Date: Thu Jun 6 09:17:13 2013 +0200 + + Renaming tools to sane namespace and keeping legacy symlinks in place. + + dosfslabel becomes fatlabel, + dosfsck becomes fsck.fat, + and mkdosfs becomes mkfs.fat. + + Signed-off-by: Daniel Baumann + +commit a42b127 +Author: Daniel Baumann +Date: Wed Jun 5 07:12:03 2013 +0200 + + Correcting wrong spelling of Debian in mkdosfs manpage. + + Signed-off-by: Daniel Baumann + +commit 2749084 +Author: Daniel Baumann +Date: Wed Jun 5 07:10:50 2013 +0200 + + Correcting spelling typo in boot.c. + + Signed-off-by: Daniel Baumann + +commit 6461c83 +Author: Martin Pitt +Date: Fri May 24 09:35:44 2013 +0200 + + dosfslabel: Do not read beyond string length (Closes: #709587). + + When checking whether the label contains any lower-case characters, do not read + beyond the end of the string. + + Signed-off-by: Daniel Baumann + +commit 4203a90 (tag: v3.0.17) +Author: Daniel Baumann +Date: Wed May 29 10:14:09 2013 +0200 + + Releasing version 3.0.17. + + Signed-off-by: Daniel Baumann + +commit 3aa88ed +Author: Daniel Baumann +Date: Wed May 29 09:48:24 2013 +0200 + + Updating maximal lenght of a label in manpage to talk about bytes instead of characters, thanks to Francois Wendling (Closes: #655953). + + Signed-off-by: Daniel Baumann + +commit 0916f8a +Author: Jaroslav Skarvada +Date: Wed May 29 09:56:08 2013 +0200 + + Fixing segfault in dosfslabel. + + Signed-off-by: Daniel Baumann + +commit 4a265c6 +Author: James Byrne +Date: Mon Apr 22 12:29:51 2013 +0100 + + Allow operation on SH4 CPUs and remove compiler warnings. + + Simplify the GET_UNALIGNED_W macro and use it in all cases instead of making it + conditional on CPU types. This missed some CPUs that needed it (e.g. SH4), and + in any case the implementation caused "dereferencing type-punned pointer will + break strict-aliasing rules" warnings. + + Enable extra warnings, but disable signed comparison and missing field + initializer warnings as these are not helpful. + + Update write_boot_label() so that the boot_sector_16 and boot_sector cases are + handled separately instead of using an aliased pointer, as that causes + "dereferencing type-punned pointer will break strict-aliasing rules" warnings. + + Make date_dos2unix(), usage() and cdiv() static functions as they are only used + in the files in which they are declared. + + Update bad_name() and lfn_get() so that the extension is processed separately + instead of by indexing past the end of the name field as that causes "array + subscript is above array bounds" warnings. + + Update the dosfsck() main function to avoid a warning that free_clusters may + be used uninitialized. Do not print the final count of files and clusters when + dosfsck is run with the "-b" option because the used files and clusters have + not been counted in this case. + + Alter the setup_tables() function so that it does not cause an "array subscript + is below array bounds" warning. + + Signed-off-by: Daniel Baumann + +commit eb68a14 +Author: James Byrne +Date: Mon Apr 22 13:32:01 2013 +0100 + + Add a .gitignore file. + + Add a .gitignore file so that the results of compilation do not appear as + changes. + + Signed-off-by: Daniel Baumann + +commit 336e8f1 +Author: James Byrne +Date: Mon Apr 22 12:38:52 2013 +0100 + + Finish cleanup of byteswap code. + + Commit 9ba8992 left three references to the old CT_LE_W macro. + Remove these since no conversion was needed as the value being + converted was zero. + + Signed-off-by: Daniel Baumann + +commit 64b6227 +Author: Daniel Baumann +Date: Thu Apr 4 08:08:00 2013 +0200 + + Shortening links to upstream homepage. + + Signed-off-by: Daniel Baumann + +commit 76304be +Author: Cristian Rodríguez +Date: Fri Mar 1 08:23:34 2013 +0100 + + Fix offsetof definition. + + * include stddef.h to get the correct offsetof definition. + * remove local offsetof definition, systems not having it on stddef.h + are in violation of C89, C99, POSIX.1-2001. + + Signed-off-by: Daniel Baumann + +commit 9ba8992 +Author: Cristian Rodríguez +Date: Fri Mar 1 08:58:36 2013 +0100 + + Cleanup byteswap code. + + Remove all duplicate macro definitions for byteswapping routines + and replace them for proper usage of userspace endian(3). + + Signed-off-by: Daniel Baumann + +commit 8733e12 (tag: v3.0.16) +Author: Daniel Baumann +Date: Wed May 29 10:06:01 2013 +0200 + + Releasing version 3.0.16. + + Signed-off-by: Daniel Baumann + +commit a9fa87e +Author: Petr Gajdos +Date: Fri Mar 1 08:34:12 2013 +0100 + + Create rootdir entry volume label with mkdosfs, create it when + it doesn't exist with dosfslabel. + + See https://bugzilla.novell.com/show_bug.cgi?id=657011#c4 + for more information. + + Signed-off-by: Daniel Baumann + +commit 92057f1 +Author: Petr Gajdos +Date: Fri Mar 1 08:33:18 2013 +0100 + + Forbid lowercase letters in label. + + See https://bugzilla.novell.com/show_bug.cgi?id=657011#c4 and + http://support.microsoft.com/kb/71715/en-us for more information. + + Signed-off-by: Daniel Baumann + +commit 5e265c4 +Author: Petr Gajdos +Date: Fri Mar 1 08:32:02 2013 +0100 + + Read label also from rootdir entry. + + See https://bugzilla.novell.com/show_bug.cgi?id=657011#c4 + for more information. + + Signed-off-by: Daniel Baumann + +commit 5cec53c +Author: Petr Gajdos +Date: Fri Mar 1 08:30:21 2013 +0100 + + alloc_rootdir_entry() is intended to be called with pattern == "FSCK%04dREC", + the old code (probably c&p from auto_rename()) doesn't reflect this. + + Signed-off-by: Daniel Baumann + +commit 63938f0 +Author: Petr Gajdos +Date: Fri Mar 1 08:29:00 2013 +0100 + + Instead of eleven blanks, fill in "NO NAME " as specification tells. + + See https://bugzilla.novell.com/show_bug.cgi?id=657011#c4 and + http://www.win.tue.nl/~aeb/linux/fs/fat/fat-1.html for more information. + + Signed-off-by: Daniel Baumann + +commit 10c1c41 +Author: Petr Gajdos +Date: Fri Mar 1 08:58:15 2013 +0100 + + Write uppercase letters in label. + + See https://bugzilla.novell.com/show_bug.cgi?id=657011#c4 and + http://support.microsoft.com/kb/71715/en-us for more information. + + Signed-off-by: Daniel Baumann + +commit a75fb1c (tag: v3.0.15) +Author: Daniel Baumann +Date: Thu Feb 21 15:06:52 2013 +0100 + + Releasing version 3.0.15. + + Signed-off-by: Daniel Baumann + +commit c8f84fd +Author: Alexander Korolkov +Date: Mon Feb 4 00:22:34 2013 +0400 + + Using wcstombs() to convert LFN unicode characters to printable text. + + This closes Debian bug #596336. + + Signed-off-by: Daniel Baumann + +commit 1546545 +Author: Alexander Korolkov +Date: Sun Sep 5 18:59:47 2010 +0400 + + Recode short filenames from DOS codepage (default 437). + + Recode short filenames from DOS codepage (default 437) to the current + character encoding. This makes messages of dosfsck more readable. + Partially closes Debian bug #596336. + + Signed-off-by: Daniel Baumann + +commit ad76cae +Author: Jaroslav Skarvada +Date: Thu Feb 21 14:40:52 2013 +0100 + + Fixing root directory allocation. + + See https://bugzilla.redhat.com/show_bug.cgi?id=674095 for more information. + + Signed-off-by: Daniel Baumann + +commit b8201b3 +Author: Jaroslav Skarvada +Date: Thu Feb 21 14:40:25 2013 +0100 + + Fixing device detection. + + See https://bugzilla.redhat.com/show_bug.cgi?id=710480 for more information. + + Signed-off-by: Daniel Baumann + +commit 7a75638 (tag: v3.0.14) +Author: Daniel Baumann +Date: Wed Jan 23 13:22:01 2013 +0100 + + Releasing version 3.0.14. + + Signed-off-by: Daniel Baumann + +commit 5bdd7ef +Author: Daniel Baumann +Date: Wed Jan 23 13:16:20 2013 +0100 + + Documenting dosfsck -b in its manpage. + + Signed-off-by: Daniel Baumann + +commit a307be2 +Author: Oleksij Rempel +Date: Wed Jan 23 12:36:56 2013 +0100 + + Adding option for bootsector read-only check. + + Most boot sectors may contains marker for filesystem state. We can this + bit on every mount and warn user if some thing wrong, without checking + complete filesystem. + + Signed-off-by: Oleksij Rempel + Signed-off-by: Daniel Baumann + +commit ce2f8dc +Author: Oleksij Rempel +Date: Wed Jan 23 12:35:13 2013 +0100 + + Checking boot sector for dirty bit. + + Some OSos use reseved byte of boot sector to set state of the file + system. If first bit set, then filesystem is proably damaged - write + operation was not finished/cache not snycted/... + + Signed-off-by: Oleksij Rempel + Signed-off-by: Daniel Baumann + +commit f33ee8c +Author: Daniel Baumann +Date: Wed Jan 23 12:25:59 2013 +0100 + + Completing and updating all copyright headers for 2013. + + Signed-off-by: Daniel Baumann + +commit bfe6d25 +Author: Daniel Baumann +Date: Wed Jan 23 12:17:20 2013 +0100 + + Updating my email address. + + Signed-off-by: Daniel Baumann + +commit 13cdb4d (tag: v3.0.13) +Author: Daniel Baumann +Date: Sat Jun 30 19:10:44 2012 +0200 + + Releasing version 3.0.13. + + Signed-off-by: Daniel Baumann + +commit d039482 +Author: Jaroslav Škarvada +Date: Sat Jun 30 19:09:11 2012 +0200 + + Fix 'dosfslabel throws "Seek to 114116076544:Invalid argument" error when labeling'. + + See https://bugzilla.redhat.com/show_bug.cgi?id=693662 for more information. + + Signed-off-by: Daniel Baumann + +commit e243612 (tag: v3.0.12) +Author: Daniel Baumann +Date: Sat Oct 29 08:40:53 2011 +0200 + + Releasing version 3.0.12. + + Signed-off-by: Daniel Baumann + +commit 025b4f0 Author: Michael Casadevall Date: Tue Jun 7 19:19:30 2011 +0200 @@ -16,14 +1162,18 @@ Date: Tue Jun 7 19:19:30 2011 +0200 See https://bugs.launchpad.net/ubuntu/+source/dosfstools/+bug/794043 for more information. + + Signed-off-by: Daniel Baumann -commit 45c3a5d8229ef998962e495f1efe7d2a6cd8a825 -Author: Daniel Baumann +commit 91a1fb9 +Author: Daniel Baumann Date: Sat Jan 8 23:38:59 2011 +0100 Re-running Nindent. + + Signed-off-by: Daniel Baumann -commit 37115695884422e6f58ec490d11d460539715f8a +commit 0390c4c Author: Sergey Gusarov Date: Sat Jan 8 23:36:11 2011 +0100 @@ -32,8 +1182,10 @@ Date: Sat Jan 8 23:36:11 2011 +0100 These warnings appear when you compile the project with the option "-Wall", what is done with the current default Makefile. + + Signed-off-by: Daniel Baumann -commit a9055613f0d826021db65c79c2df87ac91e89215 +commit 4a8f8a6 Author: Jaroslav Skarvada Date: Thu Jan 6 22:35:00 2011 +0100 @@ -44,32 +1196,42 @@ Date: Thu Jan 6 22:35:00 2011 +0100 filename buffer is only 8 chars long. Due to pattern mask used it results to only 10 files at max (FSCK0-9REC). If there is more than 10 files, it overflows and hangs. + + Signed-off-by: Daniel Baumann -commit 5a2b37f3ef664dbc7850f3d800890d7bb919b3cd +commit e0366da Author: Sergey Gusarov Date: Thu Jan 6 22:31:39 2011 +0100 Fixing conversion specifiers in accordance with the type of expressions. + + Signed-off-by: Daniel Baumann -commit 258e5ebbb24fd6293a86fe22d6bcda8ce1794dcd -Author: Daniel Baumann +commit 2d8be9c +Author: Daniel Baumann Date: Sun Jan 2 15:41:44 2011 +0100 Indenting source files. + + Signed-off-by: Daniel Baumann -commit 9c22278dda0f8fc05aa537eb0bcb07e51f0dec6a -Author: Daniel Baumann +commit 697af85 +Author: Daniel Baumann Date: Sun Jan 2 15:39:03 2011 +0100 Adding Nindent script from syslinux. + + Signed-off-by: Daniel Baumann -commit e6008ff5c15dc2e6d5b33f88a447d1159165c95d -Author: Daniel Baumann +commit 66d55cd (tag: v3.0.11) +Author: Daniel Baumann Date: Fri Dec 24 17:58:29 2010 +0100 - Releasing upstream version 3.0.11. + Releasing version 3.0.11. + + Signed-off-by: Daniel Baumann -commit bce60d1b0b739612b63852722d8504986096b40d +commit d579802 Author: Michael Stapelberg Date: Fri Nov 19 14:09:36 2010 +0100 @@ -78,92 +1240,120 @@ Date: Fri Nov 19 14:09:36 2010 +0100 This is helpful for SD cards or other removable media which have an enabled write lock -- without the "Permission denied" message, the user has to strace mkdosfs to find out what's going on. + + Signed-off-by: Daniel Baumann -commit ff45bd967e5d8ff7edc496adbad57257d4d5432b +commit bb6000f Author: Jaroslav Skarvada Date: Fri Oct 8 13:38:16 2010 +0200 Unalign on s390x, see http://bugzilla.redhat.com/show_bug.cgi?id=624596 for more information. + + Signed-off-by: Daniel Baumann -commit 22874327372f914d2919490326c95f4607f8de74 -Author: Daniel Baumann +commit 5ef7f1f (tag: v3.0.10) +Author: Daniel Baumann Date: Sun Sep 12 09:35:47 2010 +0200 - Releasing upstream version 3.0.10. + Releasing version 3.0.10. + + Signed-off-by: Daniel Baumann -commit 8b7c9d94a4571142a77a587138bc26b39f8e2863 +commit ea41797 Author: Alexander Korolkov Date: Sun Sep 12 09:29:12 2010 +0200 Modify LFN direntries when file is renamed or deleted, see Debian bug #596329. + + Signed-off-by: Daniel Baumann -commit 761b798f3bf2b4a87f2d454f555e18758791c864 +commit e56ff72 Author: Alexander Korolkov Date: Sun Sep 12 09:27:07 2010 +0200 If the test of short filename fails, dosfsck could complain about bad long filename, see Debian bug #596327. + + Signed-off-by: Daniel Baumann -commit 8fa3587a946614cd43d813052e0e31e595e6d63d +commit f0a42d0 Author: Alexander Korolkov Date: Sun Sep 12 09:24:47 2010 +0200 dosfsck: don't complain about bad filenames when short filename contains 7 or more characters with codes 128-255, see Debian bug #596327. + + Signed-off-by: Daniel Baumann -commit 3893857b841096de6a422ef5bed1b2618a7037d5 +commit 0113c5b Author: Mitch Rybczynski Date: Mon Jul 5 14:45:54 2010 +0200 Adding __arm__ define check for some crosscompile toolchains. + + Signed-off-by: Daniel Baumann -commit 7d03b3cc96b83b67638b463610a29abfd6f51f77 -Author: Daniel Baumann +commit 88cb84f +Author: Daniel Baumann Date: Sun Mar 14 16:42:32 2010 +0100 Modernizing dosfslabel manpage. + + Signed-off-by: Daniel Baumann -commit 258049911c5df476fb434e0d87e0ece01b9ba137 -Author: Daniel Baumann +commit 5aa7ec4 +Author: Daniel Baumann Date: Sun Mar 14 16:33:47 2010 +0100 Modernizing dosfsck manpage. + + Signed-off-by: Daniel Baumann -commit 50d1d96b9666913a90e16904a63e29925675859c -Author: Daniel Baumann +commit 807ed80 +Author: Daniel Baumann Date: Sun Mar 14 16:05:32 2010 +0100 Fixing spelling error in boot.c. + + Signed-off-by: Daniel Baumann -commit 0e87c7890b598d78c6aa3d2a06b2306980e75a3d -Author: Daniel Baumann +commit 5b6849d (tag: v3.0.9) +Author: Daniel Baumann Date: Sun Jan 31 08:31:32 2010 +0100 - Releasing upstream version 3.0.9. + Releasing version 3.0.9. + + Signed-off-by: Daniel Baumann -commit 9415707c2c9ad22b48660593915667dd228722fa +commit 33bca7d Author: Daniel Kahn Gillmor Date: Sun Jan 31 00:11:41 2010 -0500 Be sure to store the updated reserved_sector count in the boot sector, see Debian bug #567337. + + Signed-off-by: Daniel Baumann -commit 68b3f00471f60a692fe021d65289bbaf2dc990d5 -Author: Daniel Baumann +commit 2a3bef8 (tag: v3.0.8) +Author: Daniel Baumann Date: Sat Jan 23 10:16:18 2010 +0100 - Releasing upstream version 3.0.8. + Releasing version 3.0.8. + + Signed-off-by: Daniel Baumann -commit 69dbf2e002f0cb3f0781256dec7258b66ffae3b6 -Author: Daniel Baumann +commit 726c02d +Author: Daniel Baumann Date: Sat Jan 23 10:15:01 2010 +0100 Removing some cruft in end-comments. + + Signed-off-by: Daniel Baumann -commit eef306657f3152bbf913a8a45c514f11b2dc2494 +commit a5961d7 Author: Steven J. Magnani Date: Thu Jan 21 16:58:11 2010 +0100 @@ -181,22 +1371,28 @@ Date: Thu Jan 21 16:58:11 2010 +0100 function. Use lseek64 for positioning, and change some suspect uses of off_t to loff_t. + + Signed-off-by: Daniel Baumann -commit e69f49dd1fe52780071cb3f024d1a8246125915a +commit bbb25bf Author: Steven J. Magnani Date: Thu Jan 21 16:56:26 2010 +0100 If dosfsck is run in read-only mode (-n), exit with code 0 if the only issue found is an uninitialized free cluster summary. + + Signed-off-by: Daniel Baumann -commit e52a16d488cf680117e4d476400bdd7915ef2f7a +commit 1cae726 Author: Steven J. Magnani Date: Thu Jan 21 16:55:30 2010 +0100 On x86_64, dosfsck incorrectly claims that a free_cluster summary of 0xFFFFFFFF, defined by Microsoft to be "uninitialized," is wrong. + + Signed-off-by: Daniel Baumann -commit 32db02998ed7882df355fa4077009e8d363df3ab +commit 62f806a Author: H. Peter Anvin Date: Fri Jan 8 09:16:38 2010 +0100 @@ -213,8 +1409,10 @@ Date: Fri Jan 8 09:16:38 2010 +0100 if (align_structures); this avoids rounding the number of root directory entries up to a whole sector when used with -a (i.e. preserves the previous behavior.) + + Signed-off-by: Daniel Baumann -commit e462ac31a1d5d235b8a31a9e392e44e2dbc3783c +commit 8825bda Author: H. Peter Anvin Date: Wed Jan 6 20:55:36 2010 +0100 @@ -222,14 +1420,18 @@ Date: Wed Jan 6 20:55:36 2010 +0100 Improve the English language used in the man page for the -a (no align) option to mkdosfs. + + Signed-off-by: Daniel Baumann -commit 680d71d167f30a823f88dd66473fc664cd887ab0 -Author: Daniel Baumann +commit 21d3f81 +Author: Daniel Baumann Date: Wed Jan 6 11:27:25 2010 +0100 Adding reference to dosfslable in mkdosfs manpage. + + Signed-off-by: Daniel Baumann -commit 60fc9f853c1045e615b34a193738f88021678d30 +commit 247ba06 Author: H. Peter Anvin Date: Wed Jan 6 11:18:55 2010 +0100 @@ -241,21 +1443,27 @@ Date: Wed Jan 6 11:18:55 2010 +0100 significant performance for anything where the physical sector size is larger than the logical sector size, e.g. flash media or large-sector hard disks. + + Signed-off-by: Daniel Baumann -commit 312b05fc47107f695483994375a1f6f429069708 -Author: Daniel Baumann +commit 171bc07 (tag: v3.0.7) +Author: Daniel Baumann Date: Thu Dec 24 10:53:36 2009 +0100 - Releasing upstream version 3.0.7. + Releasing version 3.0.7. + + Signed-off-by: Daniel Baumann -commit 844307669208608a3464157ddb5e789bd9556f34 +commit 28708fc Author: Ben Hutchings Date: Thu Dec 24 09:55:52 2009 +0100 Fixing dosfslabel to set volume label in the right place, see Debian bug #559985. + + Signed-off-by: Daniel Baumann -commit 1bae0e2037717d65b3283db9da51ae7686a7a9be +commit 2c405dd Author: Lubomir Rintel Date: Thu Dec 24 09:39:39 2009 +0100 @@ -269,27 +1477,35 @@ Date: Thu Dec 24 09:39:39 2009 +0100 well are split into two, so that FORTIFY_SOURCE's bound checking does not abort dosfsck. There also was an off-by-one error in auto_rename()'s sprintf(). + + Signed-off-by: Daniel Baumann -commit eb297071adfca1ed7af85ca111f20ab41db8ac59 +commit b8f3efe Author: San Mehat Date: Thu Dec 24 09:31:41 2009 +0100 Adding custom exit code in dosfsck for the case where the FS is read only. + + Signed-off-by: Daniel Baumann -commit b3864d0939c960d0e0f15e4e3b1d626639b64681 -Author: Daniel Baumann +commit 0657e01 (tag: v3.0.6) +Author: Daniel Baumann Date: Sun Oct 4 10:59:33 2009 +0200 - Releasing upstream version 3.0.6. + Releasing version 3.0.6. + + Signed-off-by: Daniel Baumann -commit 144f8fcfc3f7982e8f460f8379a753b7a5941783 +commit bc84254 Author: Steven J. Magnani Date: Sun Oct 4 10:58:43 2009 +0200 Attempt to improve clarity of the orphan cluster reclaim code. Minor optimization - remove some unnecessary checking. + + Signed-off-by: Daniel Baumann -commit 343fe6d5e7135efadc498fd91e19ba8da499d0c9 +commit 8054b4a Author: Steven J. Magnani Date: Sun Oct 4 08:37:19 2009 +0200 @@ -297,28 +1513,36 @@ Date: Sun Oct 4 08:37:19 2009 +0200 If an orphan chain that linked to cluster 1 was reclaimed to a file, deletion of the file would result in a filesystem panic. + + Signed-off-by: Daniel Baumann -commit db079a02059d7f7296fbe9f87624623a43816c5f +commit e51af88 Author: Steven J. Magnani Date: Sun Oct 4 08:32:30 2009 +0200 Fix erroneous report of huge number of clusters in use on big-endian systems when the FSINFO free cluster count is reset. + + Signed-off-by: Daniel Baumann -commit 7d5320b8a374b8da1a16b09b3b9b0713828d6755 -Author: Daniel Baumann +commit 16ba63f (tag: v3.0.5) +Author: Daniel Baumann Date: Mon Jul 27 14:26:11 2009 +0200 - Releasing upstream version 3.0.5. + Releasing version 3.0.5. + + Signed-off-by: Daniel Baumann -commit e80ede4dd3c2058fe32e29ff82244ecb1c7c5514 +commit 28ff9d9 Author: Piotr Kaczuba Date: Sun Jul 26 22:21:25 2009 +0200 Signed/unsigned char mismatch in check.c causes false positives in bad_name() and can result in data loss, see Debian bug #538758. + + Signed-off-by: Daniel Baumann -commit 9e15ddf6d52dd166efcb59f91f16fb9d695c86c5 +commit d42a273 Author: Andrew Tridgell Date: Sun Jul 26 22:12:06 2009 +0200 @@ -326,14 +1550,18 @@ Date: Sun Jul 26 22:12:06 2009 +0200 See http://lkml.org/lkml/2009/7/20/425 and http://lkml.org/lkml/2009/7/20/424 for more information. + + Signed-off-by: Daniel Baumann -commit 6c68b94008157c444954d2f90a7f9ec8ffc2ec87 -Author: Daniel Baumann +commit dd0f0b5 (tag: v3.0.4) +Author: Daniel Baumann Date: Tue Jul 21 08:10:52 2009 +0200 - Releasing upstream version 3.0.4. + Releasing version 3.0.4. + + Signed-off-by: Daniel Baumann -commit 3ce6422e93f3de746be092e324253a8722917a86 +commit b9f37a6 Author: Andrew Tridgell Date: Tue Jul 21 07:59:22 2009 +0200 @@ -342,26 +1570,34 @@ Date: Tue Jul 21 07:59:22 2009 +0200 See http://lkml.org/lkml/2009/6/26/313 and http://lkml.org/lkml/2009/6/26/314 for more information. + + Signed-off-by: Daniel Baumann -commit 94f8769aeddf0d0d3f0be54361514a464907a4a1 +commit ecd15e8 Author: Paul Rupe Date: Tue May 19 10:37:52 2009 +0200 Fixing "Too many files need repair" error during fsck. + + Signed-off-by: Daniel Baumann -commit 89566399e407e54eb14d275770106ad42b3ac87c -Author: Daniel Baumann +commit 7c16098 (tag: v3.0.3) +Author: Daniel Baumann Date: Mon May 18 15:12:04 2009 +0200 - Releasing upstream version 3.0.3. + Releasing version 3.0.3. + + Signed-off-by: Daniel Baumann -commit 8147c98a542b714ccab34b57c84ed842bb6b50f2 -Author: Daniel Baumann +commit b396dcf +Author: Daniel Baumann Date: Mon May 18 15:10:55 2009 +0200 Also declaring arm as an unaligned architecture, see Debian bug #502961. + + Signed-off-by: Daniel Baumann -commit 18e27fa5c0f811e7edc10bca771acc7c04b19146 +commit ff1b24e Author: Steven J. Magnani Date: Mon May 18 15:01:49 2009 +0200 @@ -370,58 +1606,76 @@ Date: Mon May 18 15:01:49 2009 +0200 This patch reorganizes heap memory usage by dosfsck and mkdosfs to support limited-memory embedded systems - in particular, those based on Xilinx's Microblaze processor. It also adds a few comments. + + Signed-off-by: Daniel Baumann -commit 180b68e652df7bfeb7f336e0247aee8873edea7f +commit 89f0b72 Author: Mike Frysinger Date: Thu Mar 5 07:03:36 2009 +0100 Declaring Blackfin as an unaligned architecture. + + Signed-off-by: Daniel Baumann -commit 71ac75353d9158aed663f0a3a9d1a1a67ee4ff4f -Author: Daniel Baumann +commit b54a8a4 (tag: v3.0.2) +Author: Daniel Baumann Date: Sat Feb 28 09:48:04 2009 +0100 - Releasing upstream version 3.0.2. + Releasing version 3.0.2. + + Signed-off-by: Daniel Baumann -commit a75924b8ff629fe7ca5ba9c58ac75f66290242ee +commit 9500529 Author: Hiroaki Ishizawa Date: Fri Feb 13 10:00:46 2009 +0100 dosfsck corrupts root directory when fs->nfats is 1. + + Signed-off-by: Daniel Baumann -commit 161a5e1fdd019732e0a304beceaeeb606eb128d6 +commit 043f8a8 Author: Stepan Kasal Date: Fri Jan 30 14:56:33 2009 +0100 src/dosfslabel.c (main): After writing the label, exit code should be 0. + + Signed-off-by: Daniel Baumann -commit 26ffa1fb565c2b3284b846ca2733118808c85cb5 -Author: Daniel Baumann +commit 017da27 +Author: Daniel Baumann Date: Fri Jan 30 14:06:01 2009 +0100 Also installing ChangeLog in install-doc target of Makefile. + + Signed-off-by: Daniel Baumann -commit abad38ee561b02ec47be7e861780bf5fa2a05d0b +commit 1c76f0f Author: Stepan Kasal Date: Fri Jan 30 14:05:12 2009 +0100 Makefile: Do not clobber time stamps of doc files. + + Signed-off-by: Daniel Baumann -commit 81882d20ec6bd4bf4914d39636cecc8c8e57dd67 -Author: Daniel Baumann +commit df2d2f1 (tag: v3.0.1) +Author: Daniel Baumann Date: Sun Nov 23 22:45:45 2008 +0100 - Releasing upstream version 3.0.1. + Releasing version 3.0.1. + + Signed-off-by: Daniel Baumann -commit 41574812a2586f0b6aa1d4f6e2276e557e9cbbcf -Author: Daniel Baumann +commit 17b269b +Author: Daniel Baumann Date: Sun Nov 23 18:41:01 2008 +0100 Applying Fedoras dosfstools-vfat-timingfix.diff from Bill Nottingham to fix vfat timing issue. See https://bugzilla.redhat.com/show_bug.cgi?id=448247 for more information. + + Signed-off-by: Daniel Baumann -commit b80656109cc5cffdefd626c2ec9d45e3cf63a03e +commit e597caf Author: Ulrich Mueller Date: Tue Oct 7 07:55:37 2008 +0200 @@ -437,125 +1691,163 @@ Date: Tue Oct 7 07:55:37 2008 +0200 Macro MSDOS_FAT12 is now replaced by FAT12_THRESHOLD to make it consistent with the definition in mkdosfs and to remove the dependency on the kernel version. + + Signed-off-by: Daniel Baumann -commit b9c13d143c420a3ec6e1dcb652cafa407621e9c7 +commit 90102bc Author: Dann Frazier Date: Tue Sep 30 07:25:19 2008 +0200 Changing some wording to make the indended meaning of "full-disk device" more obvious. + + Signed-off-by: Daniel Baumann -commit 4df18ad463f41ae368c3c51bfb5a033072605663 -Author: Daniel Baumann +commit 21e9ba0 (tag: v3.0.0) +Author: Daniel Baumann Date: Sun Sep 28 11:43:19 2008 +0200 - Releasing upstream version 3.0.0. + Releasing version 3.0.0. + + Signed-off-by: Daniel Baumann -commit 17fbf2a6dc9255a6bb832472ae7cda674b55e961 -Author: Daniel Baumann +commit eaf145d +Author: Daniel Baumann Date: Sun Sep 28 11:29:01 2008 +0200 Adding GPL headers to all files. + + Signed-off-by: Daniel Baumann -commit d2039e12c8d53472411c91eb8e7a7c0544e13d6d -Author: Daniel Baumann +commit 0826117 +Author: Daniel Baumann Date: Sun Sep 28 10:51:55 2008 +0200 Adding new GPL license file. + + Signed-off-by: Daniel Baumann -commit e4e457f4b57090ecf0539f48dc682ab9afd14ab8 -Author: Daniel Baumann +commit f8d6127 +Author: Daniel Baumann Date: Fri Sep 26 23:31:12 2008 +0200 Redoing Makefile from scratch. + + Signed-off-by: Daniel Baumann -commit 216568ca3a01ed38962b22c7bf838d15d5a4d98d -Author: Daniel Baumann +commit b4feb73 +Author: Daniel Baumann Date: Sat Sep 27 00:17:38 2008 +0200 Removing whitespaces in all files at EOL and EOF. + + Signed-off-by: Daniel Baumann -commit f59157e06561c525605279145057361afa721042 -Author: Daniel Baumann +commit 1410138 +Author: Daniel Baumann Date: Fri Sep 26 23:48:56 2008 +0200 Adding Debians dosfslabel.8 manpage from Francois Wendling . + + Signed-off-by: Daniel Baumann -commit c1bacab212d2b7f6ea93914976cb60056ff8276d -Author: Daniel Baumann +commit f62e7f2 +Author: Daniel Baumann Date: Fri Sep 26 18:36:04 2008 +0200 Updating version.h includes to new location of version.h file. + + Signed-off-by: Daniel Baumann -commit 1dae9f522062037d3539cadf344e0359c644171f -Author: Daniel Baumann +commit 32e5952 +Author: Daniel Baumann Date: Fri Sep 26 18:19:36 2008 +0200 Removing old lsm file. + + Signed-off-by: Daniel Baumann -commit d843bec0b987f5582fe048f70e42df18c34d3ae4 -Author: Daniel Baumann +commit 25a433b +Author: Daniel Baumann Date: Fri Sep 26 18:07:47 2008 +0200 Removing old cvsignore files. + + Signed-off-by: Daniel Baumann -commit 77fddbc03016752286b26913c62b98f86ee63211 -Author: Daniel Baumann +commit acac13f +Author: Daniel Baumann Date: Fri Sep 26 18:18:39 2008 +0200 Removing old build file. + + Signed-off-by: Daniel Baumann -commit f3e7168fc9eb6f32a6c85021186d84944cefeba8 -Author: Daniel Baumann +commit 3ecdd21 +Author: Daniel Baumann Date: Fri Sep 26 18:19:16 2008 +0200 Removing old GPL license files. + + Signed-off-by: Daniel Baumann -commit 68089477036e97911791516ee2167286f26ff819 -Author: Daniel Baumann +commit f183d0e +Author: Daniel Baumann Date: Fri Sep 26 18:21:57 2008 +0200 Unifying dosfsck and mkdosfs Makefiles in common src/Makefile. + + Signed-off-by: Daniel Baumann -commit 9432a02d6e7c38872d7b1042f1b8be1b24a57427 -Author: Daniel Baumann +commit 61e7466 +Author: Daniel Baumann Date: Fri Sep 26 18:04:02 2008 +0200 Unifying dosfsck and mkdosfs sources in common src directory. + + Signed-off-by: Daniel Baumann -commit 0c179b9ee47174d0f34d9fc796d540012740ac01 -Author: Daniel Baumann +commit 7552d57 +Author: Daniel Baumann Date: Fri Sep 26 18:05:27 2008 +0200 Unifying dosfsck and mkdosfs manpages in common man directory. + + Signed-off-by: Daniel Baumann -commit 2d246c28ba6cfd43be2e44b11283891d922f352b -Author: Daniel Baumann +commit 124598b +Author: Daniel Baumann Date: Fri Sep 26 18:12:29 2008 +0200 Unifying dosfsck and mkdosfs documents in common doc directory. + + Signed-off-by: Daniel Baumann -commit e5b16990515d0214fd103dd8aa22ff6a3cda4b64 -Author: Daniel Baumann +commit fb9c46b +Author: Daniel Baumann Date: Fri Sep 26 15:39:51 2008 +0200 Applying Gentoos dosfstools-2.11-preen.patch from Roy Marples to alias dosfsck -p to -a: * Map -p to -a for baselayout-2, #177514. + + Signed-off-by: Daniel Baumann -commit 6a1d974251a9f9a142775ace3a8048149abfa90c -Author: Daniel Baumann +commit aaa40a9 +Author: Daniel Baumann Date: Fri Sep 26 15:49:43 2008 +0200 Applying Gentoos dosfstools-2.11-build.patch from Mike Frysinger to improve Makefile: * Respect user settings #157785/#157786 by Diego Petteno. + + Signed-off-by: Daniel Baumann -commit 1ea49f00e61b554dc833d44e1a3617e923be667e -Author: Daniel Baumann +commit 251626d +Author: Daniel Baumann Date: Fri Sep 26 15:37:34 2008 +0200 Applying Gentoos dosfstools-2.11-verify-double-count-fix.patch from @@ -564,9 +1856,11 @@ Date: Fri Sep 26 15:37:34 2008 +0200 * Don't double-count n_files during a verification pass. Bugzilla: http://bugs.gentoo.org/show_bug.cgi?id=99845 + + Signed-off-by: Daniel Baumann -commit 2d2f20b2c495fa620c7bb3ec5a0838b08f65ab05 -Author: Daniel Baumann +commit e670ea8 +Author: Daniel Baumann Date: Fri Sep 26 15:33:36 2008 +0200 Applying Gentoos dosfstools-2.11-fat32size.patch from Mike Frysinger @@ -575,9 +1869,11 @@ Date: Fri Sep 26 15:33:36 2008 +0200 * Fix generation of FAT filesystems on devices that are 256meg in size Patch by Ulrich Mueller and accepted upstream http://bugs.gentoo.org/112504 + + Signed-off-by: Daniel Baumann -commit a86564a9317b2bf9f7734feacdce794f20af74a7 -Author: Daniel Baumann +commit a6dc6a4 +Author: Daniel Baumann Date: Fri Sep 26 15:22:06 2008 +0200 Applying Suses dosfstools-2.11-unsupported-sector-size.patch from Petr @@ -585,9 +1881,11 @@ Date: Fri Sep 26 15:22:06 2008 +0200 * added warning for creation msdos on filesystem with sector size greater than 4096 [fate#303325] + + Signed-off-by: Daniel Baumann -commit 8171e51f4e02bd9f92bb515ca7896d3cb1b564b5 -Author: Daniel Baumann +commit f746956 +Author: Daniel Baumann Date: Fri Sep 26 15:18:35 2008 +0200 Applying Suses dosfstools-2.11-mkdosfs-geo0.diff from Ludwig Nussel @@ -597,16 +1895,20 @@ Date: Fri Sep 26 15:18:35 2008 +0200 zero heads and sectors. Therefore let's a) assume dummy values in that case in mkdosfs and b) don't consider such fat file systems as invalid in dosfsck. The Linux kernel accepts them anyways. + + Signed-off-by: Daniel Baumann -commit db887df619f4e995db0ab112334f31464a03fa0e -Author: Daniel Baumann +commit cf243e4 +Author: Daniel Baumann Date: Fri Sep 26 15:15:40 2008 +0200 Applying Suses dosfstools-2.11-linuxfs.patch from Ruediger Oertel to not include linux/fs.h. + + Signed-off-by: Daniel Baumann -commit 7fe3fa643494b26962d542fac38d988ac60f8c09 -Author: Daniel Baumann +commit 2d4f184 +Author: Daniel Baumann Date: Fri Sep 26 15:11:50 2008 +0200 Applying Fedoras dosfstools-2.11-assumeKernel26.patch from Peter Vrabec @@ -614,34 +1916,42 @@ Date: Fri Sep 26 15:11:50 2008 +0200 * LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 0) does not work with glibc-kernheaders-2.4-9.1.94 + + Signed-off-by: Daniel Baumann -commit 90c1c93c100722a03e48be51b1312fe65c1cb156 -Author: Daniel Baumann +commit 739a6fb +Author: Daniel Baumann Date: Fri Sep 26 15:05:00 2008 +0200 Applying Debians 99-conglomeration.dpatch (no other information available). + + Signed-off-by: Daniel Baumann -commit bb6541bf4735e3a7f1c71b4722c6d03bb4549eea -Author: Daniel Baumann +commit 3b5ed8a +Author: Daniel Baumann Date: Fri Sep 26 14:26:41 2008 +0200 Applying Debians 15-manpage-files.dpatch from Daniel Baumann to improve dosfsck manpage: * Lists fsckNNNN.rec files in FILES section (Closes: #444596). + + Signed-off-by: Daniel Baumann -commit 49282165866be19d3bc54a3f4bdee2cf3a63ba6c -Author: Daniel Baumann +commit 3b6a863 +Author: Daniel Baumann Date: Fri Sep 26 14:34:42 2008 +0200 Applying Debians 13-getopt.dpatch from Adonikam Virgo to fix mkdosfs getopt: * Fixes backup sector getopt (Closes: #232387, #479794). + + Signed-off-by: Daniel Baumann -commit c32e44b85f4eac6f6a94bd620eea4abba257042a -Author: Daniel Baumann +commit 1b2c8ca +Author: Daniel Baumann Date: Fri Sep 26 14:34:17 2008 +0200 Applying Debians 12-zero-slot.dpatch by Karl Tomlinson @@ -649,30 +1959,36 @@ Date: Fri Sep 26 14:34:17 2008 +0200 * Fixes crashes due to zero slot numbers causing a negative offset in the call to copy_lfn_part in lfn_add_slot. On amd64 this results in - a SIGSEGV in copy_lfn_part. On x86 the result is heap corruption - and thus sometimes a SIGSEGV or double free abort later. (Closes: + a SIGSEGV in copy_lfn_part. On x86 the result is heap corruption and + thus sometimes a SIGSEGV or double free abort later. (Closes: #152550, #353198, #356377, #401798). + + Signed-off-by: Daniel Baumann -commit 370847af533e628aa9e38710e6d50af09f2b71ba -Author: Daniel Baumann +commit eec8585 +Author: Daniel Baumann Date: Fri Sep 26 14:33:54 2008 +0200 Applying Debians 11-memory-efficiency.dpatch from Eero Tamminen to improve dosfsck memory efficiency: * Improves memory efficiency when checking filesystems. + + Signed-off-by: Daniel Baumann -commit 28da9f286a52acec7df7ad06cb0679e5f828e7f3 -Author: Daniel Baumann +commit 06bd669 +Author: Daniel Baumann Date: Fri Sep 26 14:33:28 2008 +0200 Applying Debians 10-manpage-synopsis.dpatch from Daniel Baumann to fix manpage synopsis: * List alternative binary names in manpage synopsis (Closes: #284983). + + Signed-off-by: Daniel Baumann -commit f253073021551c9b58d0f2ac262deb3c1b950b06 -Author: Daniel Baumann +commit 42d340d +Author: Daniel Baumann Date: Fri Sep 26 14:32:46 2008 +0200 Applying Debians 09-manpage-fat32.dpatch from Daniel Baumann @@ -680,9 +1996,11 @@ Date: Fri Sep 26 14:32:46 2008 +0200 * Don't claim that FAT32 is not choosed automatically (Closes: #414183). + + Signed-off-by: Daniel Baumann -commit f37c07aec3972cfc0db374d544ee3b27c0b4b20b -Author: Daniel Baumann +commit 0f5ce0d +Author: Daniel Baumann Date: Fri Sep 26 14:32:23 2008 +0200 Applying Debians 08-manpage-drop.dpatch from Daniel Baumann @@ -690,16 +2008,20 @@ Date: Fri Sep 26 14:32:23 2008 +0200 * Don't use confusing word 'drop' when 'delete' is meant (Closes: #134100). + + Signed-off-by: Daniel Baumann -commit 3f970c65586da2f44d2a49b639e89341bbaf1fba -Author: Daniel Baumann +commit 8ec54dd +Author: Daniel Baumann Date: Fri Sep 26 14:31:50 2008 +0200 Applying Debians 07-manpage-spelling.dpatch from Justin Pryzby to fix mkdosfs manpage typos. + + Signed-off-by: Daniel Baumann -commit 18678ba5f3a10c2a54ffee735651d7a265ae7d54 -Author: Daniel Baumann +commit 4371588 +Author: Daniel Baumann Date: Fri Sep 26 14:30:31 2008 +0200 Applying Suses dosfstools-2.11_determine-sector-size.patch from Petr @@ -707,36 +2029,44 @@ Date: Fri Sep 26 14:30:31 2008 +0200 * determine sector size of device automatically or if -S parameter present, verify, that it's not under physical sector size + + Signed-off-by: Daniel Baumann -commit 29753931b078856d78f473cfb6273e111a26891e -Author: Daniel Baumann +commit fc92e19 +Author: Daniel Baumann Date: Fri Sep 26 14:30:03 2008 +0200 Applying Suses dosfstools-2.11-o_excl.patch from Pavol Rusnak to use O_EXCL in mkdosfs: * mkdosfs now opens device with O_EXCL [#238687] + + Signed-off-by: Daniel Baumann -commit 16bb7b09ad9eaf0fe37a732cabcdbdf975b77d3e -Author: Daniel Baumann +commit 3084697 +Author: Daniel Baumann Date: Fri Sep 26 14:29:36 2008 +0200 Applying Debians 04-unaligned-memory.dpatch from Khalid Aziz to fix dosfsck unaligned memory accesses: * Fix unaligned memory accesses which cause warnings to appear - everytime the elilo bootloader script runs. This has led a number - of users to believe their install has failed (Closes: #258839). + everytime the elilo bootloader script runs. This has led a number of + users to believe their install has failed (Closes: #258839). + + Signed-off-by: Daniel Baumann -commit 1298cc8f37eaa27ca542b8b7186ea5a47a63cd7e -Author: Daniel Baumann +commit 6d5c091 +Author: Daniel Baumann Date: Fri Sep 26 13:47:40 2008 +0200 Applying Fedoras dosfstools-2.11-label.patch from Jeremy Katz to add dosfslabel (originally by Peter Jones). + + Signed-off-by: Daniel Baumann -commit d23890e1d89770d6d2ba58362c2fc4ebafbde15c -Author: Daniel Baumann +commit 07ef487 +Author: Daniel Baumann Date: Fri Sep 26 13:41:14 2008 +0200 Applying Fedoras dosfstools-2.11-fortify.patch from Jakub Jelinek @@ -745,16 +2075,22 @@ Date: Fri Sep 26 13:41:14 2008 +0200 * This violates -D_FORTIFY_SOURCE=2 (which is stricter than C standard), but isn't actually any buffer overflow. But using memcpy is more efficient anyway. + + Signed-off-by: Daniel Baumann -commit 7dbd82000e59246c1c2f8c280c4491259e10a767 -Author: Daniel Baumann +commit 78f9dca +Author: Daniel Baumann Date: Fri Sep 26 13:40:47 2008 +0200 Applying Fedoras dosfstools-2.7-argfix.patch (no other information available). + + Signed-off-by: Daniel Baumann -commit 88f3b3139c72ac11cb3dd3f5afa8dbb2198a8de5 -Author: Daniel Baumann +commit ba6774a (tag: v2.11) +Author: Daniel Baumann Date: Thu Jun 26 12:45:36 2008 +0200 - Adding upstream version 2.11. + Adding version 2.11. + + Signed-off-by: Daniel Baumann diff --git a/dosfstools/Makefile b/dosfstools/Makefile index 050b750a5..fa993559c 100644 --- a/dosfstools/Makefile +++ b/dosfstools/Makefile @@ -1,6 +1,6 @@ # Makefile # -# Copyright (C) 2008 Daniel Baumann +# Copyright (C) 2008-2014 Daniel Baumann # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -15,9 +15,12 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# On Debian systems, the complete text of the GNU General Public License +# The complete text of the GNU General Public License # can be found in /usr/share/common-licenses/GPL-3 file. +SHELL := sh -e +LANGUAGES = $(shell cd manpages/po && ls) + DESTDIR = PREFIX = /usr/local SBINDIR = $(PREFIX)/sbin @@ -25,9 +28,9 @@ DOCDIR = $(PREFIX)/share/doc MANDIR = $(PREFIX)/share/man #OPTFLAGS = -O2 -fomit-frame-pointer -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -OPTFLAGS = -O2 -fomit-frame-pointer $(shell getconf LFS_CFLAGS) +OPTFLAGS = -O2 -fomit-frame-pointer -D_GNU_SOURCE $(shell getconf LFS_CFLAGS) #WARNFLAGS = -Wall -pedantic -std=c99 -WARNFLAGS = -Wall +WARNFLAGS = -Wall -Wextra -Wno-sign-compare -Wno-missing-field-initializers -Wmissing-prototypes -Wstrict-prototypes -Wwrite-strings DEBUGFLAGS = -g CFLAGS += $(OPTFLAGS) $(WARNFLAGS) $(DEBUGFLAGS) @@ -35,51 +38,85 @@ VPATH = src all: build -build: dosfsck dosfslabel mkdosfs +build: fatlabel fsck.fat mkfs.fat -dosfsck: boot.o check.o common.o fat.o file.o io.o lfn.o dosfsck.o +fatlabel: boot.o check.o common.o fat.o file.o io.o lfn.o fatlabel.o -dosfslabel: boot.o check.o common.o fat.o file.o io.o lfn.o dosfslabel.o +fsck.fat: boot.o check.o common.o fat.o file.o io.o lfn.o fsck.fat.o -mkdosfs: mkdosfs.o +mkfs.fat: mkfs.fat.o rebuild: distclean build -install: install-bin install-doc install-man +install: install-bin install-doc install-man install-symlinks install-bin: build install -d -m 0755 $(DESTDIR)/$(SBINDIR) - install -m 0755 dosfsck dosfslabel mkdosfs $(DESTDIR)/$(SBINDIR) - - ln -sf dosfsck $(DESTDIR)/$(SBINDIR)/fsck.msdos - ln -sf dosfsck $(DESTDIR)/$(SBINDIR)/fsck.vfat - ln -sf mkdosfs $(DESTDIR)/$(SBINDIR)/mkfs.msdos - ln -sf mkdosfs $(DESTDIR)/$(SBINDIR)/mkfs.vfat + install -m 0755 fatlabel fsck.fat mkfs.fat $(DESTDIR)/$(SBINDIR) install-doc: install -d -m 0755 $(DESTDIR)/$(DOCDIR)/dosfstools install -p -m 0644 ChangeLog doc/* $(DESTDIR)/$(DOCDIR)/dosfstools install-man: - install -d -m 0755 $(DESTDIR)/$(MANDIR)/man8 - install -p -m 0644 man/*.8 $(DESTDIR)/$(MANDIR)/man8 - - ln -sf dosfsck.8 $(DESTDIR)/$(MANDIR)/man8/fsck.msdos.8 - ln -sf dosfsck.8 $(DESTDIR)/$(MANDIR)/man8/fsck.vfat.8 - ln -sf mkdosfs.8 $(DESTDIR)/$(MANDIR)/man8/mkfs.msdos.8 - ln -sf mkdosfs.8 $(DESTDIR)/$(MANDIR)/man8/mkfs.vfat.8 - -uninstall: uninstall-bin uninstall-doc uninstall-man + for MANPAGE in manpages/en/*; \ + do \ + SECTION="8"; \ + mkdir -p $(DESTDIR)/$(MANDIR)/man$${SECTION}/; \ + install -m 0644 $${MANPAGE} $(DESTDIR)/$(MANDIR)/man$${SECTION}/$$(basename $${MANPAGE}); \ + done + + for LANGUAGE in $(LANGUAGES); \ + do \ + for MANPAGE in manpages/$${LANGUAGE}/*; \ + do \ + SECTION="8"; \ + mkdir -p $(DESTDIR)/$(MANDIR)/$${LANGUAGE}/man$${SECTION}/; \ + install -m 0644 $${MANPAGE} $(DESTDIR)/$(MANDIR)/$${LANGUAGE}/man$${SECTION}/$$(basename $${MANPAGE} .$${LANGUAGE}.$${SECTION}).$${SECTION}; \ + done; \ + done +install-symlinks: install-bin install-man + if [ -e $(DESTDIR)/$(SBINDIR)/fatlabel ]; \ + then \ + ln -sf fatlabel $(DESTDIR)/$(SBINDIR)/dosfslabel; \ + if [ -e $(DESTDIR)/$(MANDIR)/man8/fatlabel.8 ]; \ + then \ + ln -sf fatlabel.8 $(DESTDIR)/$(MANDIR)/man8/dosfslabel.8; \ + fi; \ + fi + + if [ -e $(DESTDIR)/$(SBINDIR)/fsck.fat ]; \ + then \ + ln -sf fsck.fat $(DESTDIR)/$(SBINDIR)/dosfsck; \ + ln -sf fsck.fat $(DESTDIR)/$(SBINDIR)/fsck.msdos; \ + ln -sf fsck.fat $(DESTDIR)/$(SBINDIR)/fsck.vfat; \ + if [ -e $(DESTDIR)/$(MANDIR)/man8/fsck.fat.8 ]; \ + then \ + ln -sf fsck.fat.8 $(DESTDIR)/$(MANDIR)/man8/dosfsck.8; \ + ln -sf fsck.fat.8 $(DESTDIR)/$(MANDIR)/man8/fsck.msdos.8; \ + ln -sf fsck.fat.8 $(DESTDIR)/$(MANDIR)/man8/fsck.vfat.8; \ + fi; \ + fi + + if [ -e $(DESTDIR)/$(SBINDIR)/mkfs.fat ]; \ + then \ + ln -sf mkfs.fat $(DESTDIR)/$(SBINDIR)/mkdosfs; \ + ln -sf mkfs.fat $(DESTDIR)/$(SBINDIR)/mkfs.msdos; \ + ln -sf mkfs.fat $(DESTDIR)/$(SBINDIR)/mkfs.vfat; \ + if [ -e $(DESTDIR)/$(MANDIR)/man8/mkfs.fat.8 ]; \ + then \ + ln -sf mkfs.fat.8 $(DESTDIR)/$(MANDIR)/man8/mkdosfs.8; \ + ln -sf mkfs.fat.8 $(DESTDIR)/$(MANDIR)/man8/mkfs.msdos.8; \ + ln -sf mkfs.fat.8 $(DESTDIR)/$(MANDIR)/man8/mkfs.vfat.8; \ + fi; \ + fi + +uninstall: uninstall-symlinks uninstall-man uninstall-doc uninstall-bin uninstall-bin: - rm -f $(DESTDIR)/$(SBINDIR)/dosfsck - rm -f $(DESTDIR)/$(SBINDIR)/dosfslabel - rm -f $(DESTDIR)/$(SBINDIR)/mkdosfs - - rm -f $(DESTDIR)/$(SBINDIR)/fsck.msdos - rm -f $(DESTDIR)/$(SBINDIR)/fsck.vfat - rm -f $(DESTDIR)/$(SBINDIR)/mkfs.msdos - rm -f $(DESTDIR)/$(SBINDIR)/mkfs.vfat + rm -f $(DESTDIR)/$(SBINDIR)/fatlabel + rm -f $(DESTDIR)/$(SBINDIR)/fsck.fat + rm -f $(DESTDIR)/$(SBINDIR)/mkfs.fat rmdir --ignore-fail-on-non-empty $(DESTDIR)/$(SBINDIR) @@ -89,24 +126,45 @@ uninstall-doc: rmdir --ignore-fail-on-non-empty $(DESTDIR)/$(DOCDIR) uninstall-man: - rm -f $(DESTDIR)/$(MANDIR)/man8/dosfsck.8 + for MANPAGE in manpages/en/*; \ + do \ + SECTION="8"; \ + rm -f $(DESTDIR)/$(MANDIR)/man$${SECTION}/$$(basename $${MANPAGE} .en.$${SECTION}).$${SECTION}; \ + done + + for LANGUAGE in $(LANGUAGES); \ + do \ + for MANPAGE in manpages/$${LANGUAGE}/*; \ + do \ + SECTION="8"; \ + rm -f $(DESTDIR)/$(MANDIR)/$${LANGUAGE}/man$${SECTION}/$$(basename $${MANPAGE} .$${LANGUAGE}.$${SECTION}).$${SECTION}; \ + done; \ + done + +uninstall-symlinks: + rm -f $(DESTDIR)/$(SBINDIR)/dosfslabel rm -f $(DESTDIR)/$(MANDIR)/man8/dosfslabel.8 - rm -f $(DESTDIR)/$(MANDIR)/man8/mkdosfs.8 + rm -f $(DESTDIR)/$(SBINDIR)/dosfsck + rm -f $(DESTDIR)/$(MANDIR)/man8/dosfsck.8 + rm -f $(DESTDIR)/$(SBINDIR)/fsck.msdos rm -f $(DESTDIR)/$(MANDIR)/man8/fsck.msdos.8 + rm -f $(DESTDIR)/$(SBINDIR)/fsck.vfat rm -f $(DESTDIR)/$(MANDIR)/man8/fsck.vfat.8 + + rm -f $(DESTDIR)/$(SBINDIR)/mkdosfs + rm -f $(DESTDIR)/$(MANDIR)/man8/mkdosfs.8 + rm -f $(DESTDIR)/$(SBINDIR)/mkfs.msdos rm -f $(DESTDIR)/$(MANDIR)/man8/mkfs.msdos.8 + rm -f $(DESTDIR)/$(SBINDIR)/mkfs.vfat rm -f $(DESTDIR)/$(MANDIR)/man8/mkfs.vfat.8 - rmdir --ignore-fail-on-non-empty $(DESTDIR)/$(MANDIR)/man8 - rmdir --ignore-fail-on-non-empty $(DESTDIR)/$(MANDIR) - reinstall: distclean install clean: rm -f *.o distclean: clean - rm -f dosfsck dosfslabel mkdosfs + rm -f fatlabel fsck.fat mkfs.fat -.PHONY: build rebuild install install-bin install-doc install-man uninstall uninstall-bin uninstall-doc uninstall-man reinstall clean distclean +.PHONY: build rebuild install install-bin install-doc install-man install-symlinks uninstall uninstall-bin uninstall-doc uninstall-man uninstall-symlinks reinstall clean distclean diff --git a/dosfstools/VERSION b/dosfstools/VERSION new file mode 100644 index 000000000..0baec4d10 --- /dev/null +++ b/dosfstools/VERSION @@ -0,0 +1 @@ +3.0.28 diff --git a/dosfstools/doc/ANNOUNCE.mkdosfs b/dosfstools/doc/ANNOUNCE.mkdosfs index 1f02ea281..2e01716b4 100644 --- a/dosfstools/doc/ANNOUNCE.mkdosfs +++ b/dosfstools/doc/ANNOUNCE.mkdosfs @@ -27,7 +27,7 @@ Announcing the release of mkdosfs version 0.2 I've just uploaded mkdosfs to sunsite.unc.edu. It works in a similar way -to Remy Card's mke2fs, but creates an MS-DOS file system. +to Remy Card's mke2fs, but creates an MS-DOS filesystem. The filename is mkdosfs-0.2.tar.gz. diff --git a/dosfstools/doc/README.dosfsck b/dosfstools/doc/README.dosfsck index 7b351aa62..3038f363b 100644 --- a/dosfstools/doc/README.dosfsck +++ b/dosfstools/doc/README.dosfsck @@ -4,12 +4,12 @@ dosfsck, version 1 WARNING: This is ALPHA test software. Use at your own risk. dosfsck is the Linux equivalent of PC/MS-DOS' CHKDSK. It checks the -consistency of PC/MS-DOS file systems and optionally tries to repair +consistency of PC/MS-DOS filesystems and optionally tries to repair them. The tests dosfsck performs are described in the man page. dosfsck needs header files from dosfs.9 (or later) to compile. -Before using dosfsck to repair a file system that contains data of any +Before using dosfsck to repair a filesystem that contains data of any value, you should verify that dosfsck is able to correct all reported errors. (Except fatal errors and those reported as unfixable, of course.) In order to do this, run it with the -V option, e.g. diff --git a/dosfstools/doc/README.mkdosfs b/dosfstools/doc/README.mkdosfs index ae93ada4e..5bd9b21b3 100644 --- a/dosfstools/doc/README.mkdosfs +++ b/dosfstools/doc/README.mkdosfs @@ -1,4 +1,4 @@ -mkdosfs - Make DOS file system utilty. +mkdosfs - Make DOS filesystem utilty. I wrote this, partially to complement the dosfsck utility written by Werner @@ -7,7 +7,7 @@ advice about writing this code), and also to avoid me having to boot DOS just to create data partitions (I use Linux to back up DOS :-) ). The code is really derived from Remy Card's mke2fs utility - I used this as a -framework, although all of the file system specific stuff was removed and the +framework, although all of the filesystem specific stuff was removed and the DOS stuff inserted. I believe originally mke2fs was based on Linus' mkfs code, hence the acknowledgements in the source code. diff --git a/dosfstools/man/dosfsck.8 b/dosfstools/man/dosfsck.8 deleted file mode 100644 index d363c68ce..000000000 --- a/dosfstools/man/dosfsck.8 +++ /dev/null @@ -1,112 +0,0 @@ -.TH DOSFSCK 8 "2010\-01\-31" "3.0.9" "check and repair MS\-DOS filesystems" - -.SH NAME -\fBdosfsck\fR \- check and repair MS\-DOS filesystems - -.SH SYNOPSIS -\fBdosfsck\fR|\fBfsck.msdos\fR|\fBfsck.vfat\fR [\-aAflnrtvVwy] [\-d \fIPATH\fR \-d\ \fI...\fR] [\-u\ \fIPATH\fR \-u \fI...\fR] \fIDEVICE\fR - -.SH DESCRIPTION -\fBdosfsck\fR verifies the consistency of MS\-DOS filesystems and optionally tries to repair them. -.PP -The following filesystem problems can be corrected (in this order): -.IP "*" 4 -FAT contains invalid cluster numbers. Cluster is changed to EOF. -.IP "*" 4 -File's cluster chain contains a loop. The loop is broken. -.IP "*" 4 -Bad clusters (read errors). The clusters are marked bad and they are removed from files owning them. This check is optional. -.IP "*" 4 -Directories with a large number of bad entries (probably corrupt). The directory can be deleted. -.IP "*" 4 -Files . and .. are non\-directories. They can be deleted or renamed. -.IP "*" 4 -Directories . and .. in root directory. They are deleted. -.IP "*" 4 -Bad filenames. They can be renamed. -.IP "*" 4 -Duplicate directory entries. They can be deleted or renamed. -.IP "*" 4 -Directories with non\-zero size field. Size is set to zero. -.IP "*" 4 -Directory . does not point to parent directory. The start pointer is adjusted. -.IP "*" 4 -Directory .. does not point to parent of parent directory. The start pointer is adjusted. -.IP "*" 4 -Start cluster number of a file is invalid. The file is truncated. -.IP "*" 4 -File contains bad or free clusters. The file is truncated. -.IP "*" 4 -File's cluster chain is longer than indicated by the size fields. The file is truncated. -.IP "*" 4 -Two or more files share the same cluster(s). All but one of the files are truncated. If the file being truncated is a directory file that has already been read, the filesystem check is restarted after truncation. -.IP "*" 4 -File's cluster chain is shorter than indicated by the size fields. The file is truncated. -.IP "*" 4 -Clusters are marked as used but are not owned by a file. They are marked as free. -.PP -Additionally, the following problems are detected, but not repaired: -.IP "*" 4 -Invalid parameters in boot sector. -.IP "*" 4 -Absence of . and .. entries in non\-root directories -.PP -When \fBdosfsck\fR checks a filesystem, it accumulates all changes in memory and performs them only after all checks are complete. This can be disabled with the \fB\-w\fR option. - -.SH OPTIONS -.IP "\fB\-a\fR" 4 -Automatically repair the filesystem. No user intervention is necessary. Whenever there is more than one method to solve a problem, the least destructive approach is used. -.IP "\fB\-A\fR" 4 -Use Atari variation of the MS\-DOS filesystem. This is default if \fBdosfsck\fR is run on an Atari, then this option turns off Atari format. There are some minor differences in Atari format: Some boot sector fields are interpreted slightly different, and the special FAT entries for end\-of\-file and bad cluster can be different. Under MS\-DOS 0xfff8 is used for EOF and Atari employs 0xffff by default, but both systems recognize all values from 0xfff8...0xffff as end\-of\-file. MS\-DOS uses only 0xfff7 for bad clusters, where on Atari values 0xfff0...0xfff7 are for this purpose (but the standard value is still 0xfff7). -.IP "\fB\-d\fR" 4 -Delete the specified file. If more that one file with that name exists, the first one is deleted. -.IP "\fB\-f\fR" 4 -Salvage unused cluster chains to files. By default, unused clusters are added to the free disk space except in auto mode (\fB\-a\fR). -.IP "\fB\-l\fR" 4 -List path names of files being processed. -.IP "\fB\-n\fR" 4 -No\-operation mode: non\-interactively check for errors, but don't write -anything to the filesystem. -.IP "\fB\-r\fR" 4 -Interactively repair the filesystem. The user is asked for advice whenever -there is more than one approach to fix an inconsistency. -.IP "\fB\-t\fR" 4 -Mark unreadable clusters as bad. -.IP "\fB\-u\fR" 4 -Try to undelete the specified file. \fBdosfsck\fR tries to allocate a chain of contiguous unallocated clusters beginning with the start cluster of the undeleted file. -.IP "\fB\-v\fR" 4 -Verbose mode. Generates slightly more output. -.IP "\fB\-V\fR" 4 -Perform a verification pass. The filesystem check is repeated after the first run. The second pass should never report any fixable errors. It may take considerably longer than the first pass, because the first pass may have generated long list of modifications that have to be scanned for each disk read. -.IP "\fB\-w\fR" 4 -Write changes to disk immediately. -.IP "\fB\-y\fR" 4 -Same as \fB\-a\fR (automatically repair filesystem) for compatibility with other fsck tools. -.PP -\fBNote:\fR If \fB\-a\fR and \fB\-r\fR are absent, the filesystem is only checked, but not repaired. - -.SH "EXIT STATUS" -.IP "0" 4 -No recoverable errors have been detected. -.IP "1" 4 -Recoverable errors have been detected or \fBdosfsck\fR has discovered an internal inconsistency. -.IP "2" 4 -Usage error. \fBdosfsck\fR did not access the filesystem. - -.SH FILES -.IP "fsck0000.rec, fsck0001.rec, ..." 4 -When recovering from a corrupted filesystem, \fBdosfsck\fR dumps recovered data into files named 'fsckNNNN.rec' in the top level directory of the filesystem. - -.SH BUGS -Does not create . and .. files where necessary. Does not remove entirely empty directories. Should give more diagnostic messages. Undeleting files should use a more sophisticated algorithm. - -.SH SEE ALSO -\fBdosfslabel\fR(8) -.br -\fBmkdosfs\fR(8) - -.SH HOMEPAGE -More information about \fBdosfsck\fR and \fBdosfstools\fR can be found at <\fIhttp://www.daniel\-baumann.ch/software/dosfstools/\fR>. - -.SH AUTHORS -\fBdosfstools\fR were written by Werner Almesberger <\fIwerner.almesberger@lrc.di.epfl.ch\fR>, Roman Hodek <\fIRoman.Hodek@informatik.uni-erlangen.de\fR>, and others. The current maintainer is Daniel Baumann <\fIdaniel@debian.org\fR>. diff --git a/dosfstools/man/dosfslabel.8 b/dosfstools/man/dosfslabel.8 deleted file mode 100644 index 293ff5de9..000000000 --- a/dosfstools/man/dosfslabel.8 +++ /dev/null @@ -1,29 +0,0 @@ -.TH DOSFSLABEL 8 "2010\-01\-31" "3.0.9" "set or get MS\-DOS filesystem label" - -.SH NAME -\fBdosfslabel\fR \- set or get MS\-DOS filesystem label - -.SH SYNOPSIS -\fBdosfslabel\fR \fIDEVICE\fR [\fILABEL\fR] - -.SH DESCRIPTION -\fBdosfslabel\fR set or gets a MS\-DOS filesystem label from a given device. -.PP -If the label is omitted, then the label name of the specified device is written on the standard output. A label can't be longer than 11 characters. - -.SH OPTIONS -.IP "\fB\-h\fR, \fB\-\-help\fR" 4 -Displays a help message. -.IP "\fB\-V\fR, \fB\-\-version\fR" 4 -Shows version. - -.SH SEE ALSO -\fBdosfsck\fR(8) -.br -\fBmkdosfs\fR(8) - -.SH HOMEPAGE -More information about \fBdosfsck\fR and \fBdosfstools\fR can be found at <\fIhttp://www.daniel\-baumann.ch/software/dosfstools/\fR>. - -.SH AUTHORS -\fBdosfstools\fR were written by Werner Almesberger <\fIwerner.almesberger@lrc.di.epfl.ch\fR>, Roman Hodek <\fIRoman.Hodek@informatik.uni-erlangen.de\fR>, and others. The current maintainer is Daniel Baumann <\fIdaniel@debian.org\fR>. diff --git a/dosfstools/man/mkdosfs.8 b/dosfstools/man/mkdosfs.8 deleted file mode 100644 index 9100c39b4..000000000 --- a/dosfstools/man/mkdosfs.8 +++ /dev/null @@ -1,224 +0,0 @@ -.\" -*- nroff -*- -.TH MKDOSFS 8 "5 May 1995" "Version 2.x" -.SH NAME -.B mkdosfs -\- create an MS-DOS file system under Linux -.SH SYNOPSIS -.B mkdosfs|mkfs.msdos|mkfs.vfat -[ -.B \-a -] -[ -.B \-A -] -[ -.B \-b -.I sector-of-backup -] -[ -.B \-c -] -[ -.B \-l -.I filename -] -[ -.B \-C -] -[ -.B \-f -.I number-of-FATs -] -[ -.B \-F -.I FAT-size -] -[ -.B \-h -.I number-of-hidden-sectors -] -[ -.B \-i -.I volume-id -] -.RB [ " \-I " ] -[ -.B \-m -.I message-file -] -[ -.B \-n -.I volume-name -] -[ -.B \-r -.I root-dir-entries -] -[ -.B \-R -.I number-of-reserved-sectors -] -[ -.B \-s -.I sectors-per-cluster -] -[ -.B \-S -.I logical-sector-size -] -[ -.B \-v -] -.I device -[ -.I block-count -] -.SH DESCRIPTION -.B mkdosfs -is used to create an MS-DOS file system under Linux on a device (usually -a disk partition). -.I device -is the special file corresponding to the device (e.g /dev/hdXX). -.I block-count -is the number of blocks on the device. If omitted, -.B mkdosfs -automatically determines the file system size. -.SH OPTIONS -.TP -.B \-a -Normally, for any filesystem except very small ones, \fBmkdosfs\fP -will align all the data structures to cluster size, to make sure that -as long as the partition is properly aligned, so will all the data -structures in the filesystem. This option disables alignment; this -may provide a handful of additional clusters of storage at the expense -of a significant performance degradation on RAIDs, flash media or -large-sector hard disks. -.TP -.B \-A -Use Atari variation of the MS-DOS file system. This is default if -\fBmkdosfs\fP is run on an Atari, then this option turns off Atari -format. There are some differences when using Atari format: If not -directed otherwise by the user, \fBmkdosfs\fP will always use 2 -sectors per cluster, since GEMDOS doesn't like other values very much. -It will also obey the maximum number of sectors GEMDOS can handle. -Larger file systems are managed by raising the logical sector size. -Under Atari format, an Atari-compatible serial number for the -file system is generated, and a 12 bit FAT is used only for file systems -that have one of the usual floppy sizes (720k, 1.2M, 1.44M, 2.88M), a -16 bit FAT otherwise. This can be overridden with the \fB\-F\fP -option. Some PC-specific boot sector fields aren't written, and a boot -message (option \fB\-m\fP) is ignored. -.TP -.BI \-b " sector-of-backup " -Selects the location of the backup boot sector for FAT32. Default -depends on number of reserved sectors, but usually is sector 6. The -backup must be within the range of reserved sectors. -.TP -.B \-c -Check the device for bad blocks before creating the file system. -.TP -.B \-C -Create the file given as \fIdevice\fP on the command line, and write -the to-be-created file system to it. This can be used to create the -new file system in a file instead of on a real device, and to avoid -using \fBdd\fP in advance to create a file of appropriate size. With -this option, the \fIblock-count\fP must be given, because otherwise -the intended size of the file system wouldn't be known. The file -created is a sparse file, which actually only contains the meta-data -areas (boot sector, FATs, and root directory). The data portions won't -be stored on the disk, but the file nevertheless will have the -correct size. The resulting file can be copied later to a floppy disk -or other device, or mounted through a loop device. -.TP -.BI \-f " number-of-FATs" -Specify the number of file allocation tables in the file system. The -default is 2. Currently the Linux MS-DOS file system does not support -more than 2 FATs. -.TP -.BI \-F " FAT-size" -Specifies the type of file allocation tables used (12, 16 or 32 bit). -If nothing is specified, \fBmkdosfs\fR will automatically select -between 12, 16 and 32 bit, whatever fits better for the file system size. -.TP -.BI \-h " number-of-hidden-sectors " -Select the number of hidden sectors in the volume. Apparently some -digital cameras get indigestion if you feed them a CF card without -such hidden sectors, this option allows you to satisfy them. Assumes -\'0\' if no value is given on the command line. -.TP -.I \-i " volume-id" -Sets the volume ID of the newly created file system; -.I volume-id -is a 32-bit hexadecimal number (for example, 2e24ec82). The default -is a number which depends on the file system creation time. -.TP -.B \-I -It is typical for fixed disk devices to be partitioned so, by default, you are -not permitted to create a filesystem across the entire device. -.B mkdosfs -will complain and tell you that it refuses to work. This is different -when using MO disks. One doesn't always need partitions on MO disks. -The file system can go directly to the whole disk. Under other OSes -this is known as the 'superfloppy' format. - -This switch will force -.B mkdosfs -to work properly. -.TP -.BI \-l " filename" -Read the bad blocks list from -.IR filename . -.TP -.BI \-m " message-file" -Sets the message the user receives on attempts to boot this file system -without having properly installed an operating system. The message -file must not exceed 418 bytes once line feeds have been converted to -carriage return-line feed combinations, and tabs have been expanded. -If the filename is a hyphen (-), the text is taken from standard input. -.TP -.BI \-n " volume-name" -Sets the volume name (label) of the file system. The volume name can -be up to 11 characters long. The default is no label. -.TP -.BI \-r " root-dir-entries" -Select the number of entries available in the root directory. The -default is 112 or 224 for floppies and 512 for hard disks. -.TP -.BI \-R " number-of-reserved-sectors " -Select the number of reserved sectors. With FAT32 format at least 2 -reserved sectors are needed, the default is 32. Otherwise the default -is 1 (only the boot sector). -.TP -.BI \-s " sectors-per-cluster" -Specify the number of disk sectors per cluster. Must be a power of 2, -i.e. 1, 2, 4, 8, ... 128. -.TP -.BI \-S " logical-sector-size" -Specify the number of bytes per logical sector. Must be a power of 2 -and greater than or equal to 512, i.e. 512, 1024, 2048, 4096, 8192, -16384, or 32768. -.TP -.B \-v -Verbose execution. -.SH BUGS -.B mkdosfs -can not create boot-able file systems. This isn't as easy as you might -think at first glance for various reasons and has been discussed a lot -already. -.B mkdosfs -simply will not support it ;) -.SH AUTHOR -Dave Hudson - ; modified by Peter Anvin -. Fixes and additions by Roman Hodek - for Debian/GNU Linux. -.SH ACKNOWLEDGMENTS -.B mkdosfs -is based on code from -.BR mke2fs -(written by Remy Card - ) which is itself based on -.BR mkfs -(written by Linus Torvalds - ). -.SH SEE ALSO -.BR dosfsck (8), -.BR dosfslabel (8), -.BR mkfs (8) diff --git a/dosfstools/manpages/Makefile b/dosfstools/manpages/Makefile new file mode 100644 index 000000000..ee8a47829 --- /dev/null +++ b/dosfstools/manpages/Makefile @@ -0,0 +1,50 @@ +# Makefile + +## dosfstools(7) +## Copyright (C) 2006-2014 Daniel Baumann +## +## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING. +## This is free software, and you are welcome to redistribute it +## under certain conditions; see COPYING for details. + + +SHELL := sh -e + +LANGUAGES = $(shell cd po && ls) + +all: build + +po4a.cfg: + echo "[po4a_langs] $(LANGUAGES)" > po4a.cfg + echo "[po4a_paths] pot/\$$master.pot \$$lang:po/\$$lang/\$$master.po" >> po4a.cfg + + for MANPAGE in en/*; \ + do \ + SECTION="$$(basename $${MANPAGE} | sed -e 's|\.|\n|g' | tail -n1)"; \ + echo "[type: man] $${MANPAGE} \$$lang:\$$lang/$$(basename $${MANPAGE} .$${SECTION}).\$$lang.$${SECTION}" >> po4a.cfg; \ + done + +update: + ./bin/update-version.sh + +build: po4a.cfg + @if [ ! -x "$$(which po4a 2>/dev/null)" ]; \ + then \ + echo "E: po4a - command not found"; \ + echo "I: po4a can be obtained from:"; \ + echo "I: http://po4a.alioth.debian.org/"; \ + echo "I: On Debian based systems, po4a can be installed with:"; \ + echo "I: apt-get install po4a"; \ + exit 1; \ + fi + + po4a --keep 0 --no-backups -o untranslated=MT,ME \ + --package-name dosfstools po4a.cfg + +clean: + rm -rf $(LANGUAGES) + +distclean: clean + rm -f po4a.cfg + +rebuild: distclean update build diff --git a/dosfstools/manpages/bin/update-version.sh b/dosfstools/manpages/bin/update-version.sh new file mode 100755 index 000000000..48e9c08c0 --- /dev/null +++ b/dosfstools/manpages/bin/update-version.sh @@ -0,0 +1,55 @@ +#!/bin/sh + +## dosfstools(7) +## Copyright (C) 2006-2014 Daniel Baumann +## +## This program comes with ABSOLUTELY NO WARRANTY; for details see COPYING. +## This is free software, and you are welcome to redistribute it +## under certain conditions; see COPYING for details. + + +set -e + +PROJECT="dosfstools" +VERSION="$(cat ../VERSION)" + +DATE="$(LC_ALL=C date +%Y\\\\-%m\\\\-%d)" + +DAY="$(LC_ALL=C date +%d)" +MONTH="$(LC_ALL=C date +%m)" +YEAR="$(LC_ALL=C date +%Y)" + +echo "Updating version headers..." + +for MANPAGE in en/* +do + PROGRAM="$(basename ${MANPAGE} | sed -e 's|\(.*\).[0-9]$|\1|' | tr [a-z] [A-Z])" + SECTION="$(basename ${MANPAGE} | sed -e 's|.*.\([0-9]\)$|\1|')" + + sed -i -e "s|^.TH.*$|.TH ${PROGRAM} ${SECTION} ${DATE} ${VERSION} \"${PROJECT}\"|" ${MANPAGE} +done + +# European date format +for _LANGUAGE in de es fr it +do + if ls po/${_LANGUAGE}/*.po > /dev/null 2>&1 + then + for _FILE in po/${_LANGUAGE}/*.po + do + sed -i -e "s|^msgstr .*.2014-.*$|msgstr \"${DAY}.${MONTH}.${YEAR}\"|g" \ + -e "s|^msgstr .*.2014\"$|msgstr \"${DAY}.${MONTH}.${YEAR}\"|g" \ + "${_FILE}" + done + fi +done + +# Brazilian date format +if ls po/pt_BR/*.po > /dev/null 2>&1 +then + for _FILE in po/pt_BR/*.po + do + sed -i -e "s|^msgstr .*.2014-.*$|msgstr \"${DAY}-${MONTH}-${YEAR}\"|g" \ + -e "s|^msgstr .*-2014\"$|msgstr \"${DAY}-${MONTH}-${YEAR}\"|g" \ + "${_FILE}" + done +fi diff --git a/dosfstools/manpages/de/fatlabel.de.8 b/dosfstools/manpages/de/fatlabel.de.8 new file mode 100644 index 000000000..53f5515ed --- /dev/null +++ b/dosfstools/manpages/de/fatlabel.de.8 @@ -0,0 +1,68 @@ +.\" fatlabel.8 - manpage for fatlabel +.\" +.\" Copyright (C) 2006-2014 Daniel Baumann +.\" +.\" This program is free software: you can redistribute it and/or modify +.\" it under the terms of the GNU General Public License as published by +.\" the Free Software Foundation, either version 3 of the License, or +.\" (at your option) any later version. +.\" +.\" This program is distributed in the hope that it will be useful, +.\" but WITHOUT ANY WARRANTY; without even the implied warranty of +.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.\" GNU General Public License for more details. +.\" +.\" You should have received a copy of the GNU General Public License +.\" along with this program. If not, see . +.\" +.\" The complete text of the GNU General Public License +.\" can be found in /usr/share/common-licenses/GPL-3 file. +.\" +.\" +.\"******************************************************************* +.\" +.\" This file was generated with po4a. Translate the source file. +.\" +.\"******************************************************************* +.TH FATLABEL 8 2015\-05\-16 3.0.28 dosfstools +.SH NAME +.\" ---------------------------------------------------------------------------- +\fBfatlabel\fP \- set or get MS\-DOS filesystem label +.SH SYNOPSIS +.\" ---------------------------------------------------------------------------- +\fBfatlabel\fP \fIDEVICE\fP [\fILABEL\fP] +.SH DESCRIPTION +\fBfatlabel\fP set or gets a MS\-DOS filesystem label from a given device. +.PP +.\" ---------------------------------------------------------------------------- +If \fILABEL\fP is omitted, then the label name of the specified device is +written on the standard output. A label can't be longer than 11 bytes. +.SH OPTIONS +.IP "\fB\-h\fP, \fB\-\-help\fP" 4 +Displays a help message. +.IP "\fB\-V\fP, \fB\-\-version\fP" 4 +.\" ---------------------------------------------------------------------------- +Shows version. +.SH "SEE ALSO" +\fBfsck.fat\fP(8) +.br +.\" ---------------------------------------------------------------------------- +\fBmkfs.fat\fP(8) +.SH HOMEPAGE +.\" ---------------------------------------------------------------------------- +The home for the \fBdosfstools\fP project is its +.UR https://github.com/dosfstools/dosfstools +GitHub project page +.UE . +.SH AUTHORS +\fBdosfstools\fP were written by +.MT werner.almesberger@\:lrc.di.epfl.ch +Werner Almesberger +.ME , +.MT Roman.Hodek@\:informatik.\:uni-erlangen.de +Roman Hodek +.ME , +and others. The current maintainer is +.MT aeb@\:debian.org +Andreas Bombe +.ME . diff --git a/dosfstools/manpages/de/fsck.fat.de.8 b/dosfstools/manpages/de/fsck.fat.de.8 new file mode 100644 index 000000000..869b806a8 --- /dev/null +++ b/dosfstools/manpages/de/fsck.fat.de.8 @@ -0,0 +1,189 @@ +.\" fsck.fat.8 - manpage for fsck.fat +.\" +.\" Copyright (C) 2006-2014 Daniel Baumann +.\" +.\" This program is free software: you can redistribute it and/or modify +.\" it under the terms of the GNU General Public License as published by +.\" the Free Software Foundation, either version 3 of the License, or +.\" (at your option) any later version. +.\" +.\" This program is distributed in the hope that it will be useful, +.\" but WITHOUT ANY WARRANTY; without even the implied warranty of +.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.\" GNU General Public License for more details. +.\" +.\" You should have received a copy of the GNU General Public License +.\" along with this program. If not, see . +.\" +.\" The complete text of the GNU General Public License +.\" can be found in /usr/share/common-licenses/GPL-3 file. +.\" +.\" +.\"******************************************************************* +.\" +.\" This file was generated with po4a. Translate the source file. +.\" +.\"******************************************************************* +.TH FSCK.FAT 8 2015\-05\-16 3.0.28 dosfstools +.SH NAME +.\" ---------------------------------------------------------------------------- +\fBfsck.fat\fP \- check and repair MS\-DOS filesystems +.SH SYNOPSIS +.\" ---------------------------------------------------------------------------- +\fBfsck.fat\fP [\fIOPTIONS\fP] \fIDEVICE\fP +.SH DESCRIPTION +\fBfsck.fat\fP verifies the consistency of MS\-DOS filesystems and optionally +tries to repair them. +.PP +The following filesystem problems can be corrected (in this order): +.IP * 4 +FAT contains invalid cluster numbers. Cluster is changed to EOF. +.IP * 4 +File's cluster chain contains a loop. The loop is broken. +.IP * 4 +Bad clusters (read errors). The clusters are marked bad and they are +removed from files owning them. This check is optional. +.IP * 4 +Directories with a large number of bad entries (probably corrupt). The +directory can be deleted. +.IP * 4 +Files . and .. are non\-directories. They can be deleted or renamed. +.IP * 4 +Directories . and .. in root directory. They are deleted. +.IP * 4 +Bad filenames. They can be renamed. +.IP * 4 +Duplicate directory entries. They can be deleted or renamed. +.IP * 4 +Directories with non\-zero size field. Size is set to zero. +.IP * 4 +Directory . does not point to parent directory. The start pointer is +adjusted. +.IP * 4 +Directory .. does not point to parent of parent directory. The start +pointer is adjusted. +.IP * 4 +Start cluster number of a file is invalid. The file is truncated. +.IP * 4 +File contains bad or free clusters. The file is truncated. +.IP * 4 +File's cluster chain is longer than indicated by the size fields. The file +is truncated. +.IP * 4 +Two or more files share the same cluster(s). All but one of the files are +truncated. If the file being truncated is a directory file that has already +been read, the filesystem check is restarted after truncation. +.IP * 4 +File's cluster chain is shorter than indicated by the size fields. The file +is truncated. +.IP * 4 +Clusters are marked as used but are not owned by a file. They are marked as +free. +.PP +Additionally, the following problems are detected, but not repaired: +.IP * 4 +Invalid parameters in boot sector +.IP * 4 +Absence of . and .. entries in non\-root directories +.PP +.\" ---------------------------------------------------------------------------- +When \fBfsck.fat\fP checks a filesystem, it accumulates all changes in memory +and performs them only after all checks are complete. This can be disabled +with the \fB\-w\fP option. +.SH OPTIONS +.IP \fB\-a\fP 4 +Automatically repair the filesystem. No user intervention is necessary. +Whenever there is more than one method to solve a problem, the least +destructive approach is used. +.IP \fB\-A\fP 4 +Use Atari variation of the MS\-DOS filesystem. This is default if +\fBfsck.fat\fP is run on an Atari, then this option turns off Atari format. +There are some minor differences in Atari format: Some boot sector fields +are interpreted slightly different, and the special FAT entries for +end\-of\-file and bad cluster can be different. Under MS\-DOS 0xfff8 is used +for EOF and Atari employs 0xffff by default, but both systems recognize all +values from 0xfff8...0xffff as end\-of\-file. MS\-DOS uses only 0xfff7 for bad +clusters, where on Atari values 0xfff0...0xfff7 are for this purpose (but +the standard value is still 0xfff7). +.IP \fB\-b\fP 4 +Make read\-only boot sector check. +.IP "\fB\-d\fP \fIPATH\fP" 4 +Delete the specified file. If more than one file with that name exist, the +first one is deleted. This option can be given more than once. +.IP \fB\-f\fP 4 +Salvage unused cluster chains to files. By default, unused clusters are +added to the free disk space except in auto mode (\fB\-a\fP). +.IP \fB\-l\fP 4 +List path names of files being processed. +.IP \fB\-n\fP 4 +No\-operation mode: non\-interactively check for errors, but don't write +anything to the filesystem. +.IP \fB\-p\fP 4 +Same as \fB\-a\fP, for compatibility with other *fsck. +.IP \fB\-r\fP 4 +Interactively repair the filesystem. The user is asked for advice whenever +there is more than one approach to fix an inconsistency. This is the +default mode and the option is only retained for backwards compatibility. +.IP \fB\-t\fP 4 +Mark unreadable clusters as bad. +.IP "\fB\-u\fP \fIPATH\fP" 4 +Try to undelete the specified file. \fBfsck.fat\fP tries to allocate a chain +of contiguous unallocated clusters beginning with the start cluster of the +undeleted file. This option can be given more than once. +.IP \fB\-v\fP 4 +Verbose mode. Generates slightly more output. +.IP \fB\-V\fP 4 +Perform a verification pass. The filesystem check is repeated after the +first run. The second pass should never report any fixable errors. It may +take considerably longer than the first pass, because the first pass may +have generated long list of modifications that have to be scanned for each +disk read. +.IP \fB\-w\fP 4 +Write changes to disk immediately. +.IP \fB\-y\fP 4 +.\" ---------------------------------------------------------------------------- +Same as \fB\-a\fP (automatically repair filesystem) for compatibility with other +fsck tools. +.SH "EXIT STATUS" +.IP 0 4 +No recoverable errors have been detected. +.IP 1 4 +Recoverable errors have been detected or \fBfsck.fat\fP has discovered an +internal inconsistency. +.IP 2 4 +.\" ---------------------------------------------------------------------------- +Usage error. \fBfsck.fat\fP did not access the filesystem. +.SH FILES +.IP "fsck0000.rec, fsck0001.rec, ..." 4 +.\" ---------------------------------------------------------------------------- +When recovering from a corrupted filesystem, \fBfsck.fat\fP dumps recovered +data into files named 'fsckNNNN.rec' in the top level directory of the +filesystem. +.SH BUGS +.\" ---------------------------------------------------------------------------- +Does not create . and .. files where necessary. Does not remove entirely +empty directories. Should give more diagnostic messages. Undeleting files +should use a more sophisticated algorithm. +.SH "SEE ALSO" +\fBfatlabel\fP(8) +.br +.\" ---------------------------------------------------------------------------- +\fBmkfs.fat\fP(8) +.SH HOMEPAGE +.\" ---------------------------------------------------------------------------- +The home for the \fBdosfstools\fP project is its +.UR https://github.com/dosfstools/dosfstools +GitHub project page +.UE . +.SH AUTHORS +\fBdosfstools\fP were written by +.MT werner.almesberger@\:lrc.di.epfl.ch +Werner Almesberger +.ME , +.MT Roman.Hodek@\:informatik.\:uni-erlangen.de +Roman Hodek +.ME , +and others. The current maintainer is +.MT aeb@\:debian.org +Andreas Bombe +.ME . diff --git a/dosfstools/manpages/de/mkfs.fat.de.8 b/dosfstools/manpages/de/mkfs.fat.de.8 new file mode 100644 index 000000000..a1b51d45b --- /dev/null +++ b/dosfstools/manpages/de/mkfs.fat.de.8 @@ -0,0 +1,172 @@ +.\" mkfs.fat.8 - manpage for fs.fatck +.\" +.\" Copyright (C) 2006-2014 Daniel Baumann +.\" +.\" This program is free software: you can redistribute it and/or modify +.\" it under the terms of the GNU General Public License as published by +.\" the Free Software Foundation, either version 3 of the License, or +.\" (at your option) any later version. +.\" +.\" This program is distributed in the hope that it will be useful, +.\" but WITHOUT ANY WARRANTY; without even the implied warranty of +.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.\" GNU General Public License for more details. +.\" +.\" You should have received a copy of the GNU General Public License +.\" along with this program. If not, see . +.\" +.\" The complete text of the GNU General Public License +.\" can be found in /usr/share/common-licenses/GPL-3 file. +.\" +.\" +.\"******************************************************************* +.\" +.\" This file was generated with po4a. Translate the source file. +.\" +.\"******************************************************************* +.TH MKFS.FAT 8 2015\-05\-16 3.0.28 dosfstools +.SH NAME +.\" ---------------------------------------------------------------------------- +\fBmkfs.fat\fP \- create an MS\-DOS filesystem under Linux +.SH SYNOPSIS +.\" ---------------------------------------------------------------------------- +\fBmkfs.fat\fP [\fIOPTIONS\fP] \fIDEVICE\fP [\fIBLOCK\-COUNT\fP] +.SH DESCRIPTION +.\" ---------------------------------------------------------------------------- +\fBmkfs.fat\fP is used to create an MS\-DOS filesystem under Linux on a device +(usually a disk partition). \fIDEVICE\fP is the special file corresponding to +the device (e.g. /dev/sdXX). \fIBLOCK\-COUNT\fP is the number of blocks on the +device. If omitted, \fBmkfs.fat\fP automatically determines the filesystem +size. +.SH OPTIONS +.IP \fB\-a\fP 4 +Normally, for any filesystem except very small ones, \fBmkfs.fat\fP will align +all the data structures to cluster size, to make sure that as long as the +partition is properly aligned, so will all the data structures in the +filesystem. This option disables alignment; this may provide a handful of +additional clusters of storage at the expense of a significant performance +degradation on RAIDs, flash media or large\-sector hard disks. +.IP "\fB \-A\fP" 4 +Use Atari variation of the MS\-DOS filesystem. This is default if +\fBmkfs.fat\fP is run on an Atari, then this option turns off Atari format. +There are some differences when using Atari format: If not directed +otherwise by the user, \fBmkfs.fat\fP will always use 2 sectors per cluster, +since GEMDOS doesn't like other values very much. It will also obey the +maximum number of sectors GEMDOS can handle. Larger filesystems are managed +by raising the logical sector size. Under Atari format, an Atari\-compatible +serial number for the filesystem is generated, and a 12 bit FAT is used only +for filesystems that have one of the usual floppy sizes (720k, 1.2M, 1.44M, +2.88M), a 16 bit FAT otherwise. This can be overridden with the \fB\-F\fP +option. Some PC\-specific boot sector fields aren't written, and a boot +message (option \fB\-m\fP) is ignored. +.IP "\fB\-b\fP \fISECTOR\-OF\-BACKUP\fP" 4 +Selects the location of the backup boot sector for FAT32. Default depends +on number of reserved sectors, but usually is sector 6. The backup must be +within the range of reserved sectors. +.IP \fB\-c\fP 4 +Check the device for bad blocks before creating the filesystem. +.IP \fB\-C\fP 4 +Create the file given as \fIDEVICE\fP on the command line, and write the +to\-be\-created filesystem to it. This can be used to create the new +filesystem in a file instead of on a real device, and to avoid using \fBdd\fP +in advance to create a file of appropriate size. With this option, the +\fIBLOCK\-COUNT\fP must be given, because otherwise the intended size of the +filesystem wouldn't be known. The file created is a sparse file, which +actually only contains the meta\-data areas (boot sector, FATs, and root +directory). The data portions won't be stored on the disk, but the file +nevertheless will have the correct size. The resulting file can be copied +later to a floppy disk or other device, or mounted through a loop device. +.IP "\fB\-D\fP \fIDRIVE\-NUMBER\fP" 4 +Specify the BIOS drive number to be stored in the FAT boot sector. This +value is usually 0x80 for hard disks and 0x00 for floppy devices or +partitions to be used for floppy emulation. +.IP "\fB\-f\fP \fINUMBER\-OF\-FATS\fP" 4 +Specify the number of file allocation tables in the filesystem. The default +is 2. +.IP "\fB\-F\fP \fIFAT\-SIZE\fP" 4 +Specifies the type of file allocation tables used (12, 16 or 32 bit). If +nothing is specified, \fBmkfs.fat\fP will automatically select between 12, 16 +and 32 bit, whatever fits better for the filesystem size. +.IP "\fB\-h\fP \fINUMBER\-OF\-HIDDEN\-SECTORS\fP" 4 +Select the number of hidden sectors in the volume. Apparently some digital +cameras get indigestion if you feed them a CF card without such hidden +sectors, this option allows you to satisfy them. +.IP "\fB\-i\fP \fIVOLUME\-ID\fP" 4 +Sets the volume ID of the newly created filesystem; \fIVOLUME\-ID\fP is a 32\-bit +hexadecimal number (for example, 2e24ec82). The default is a number which +depends on the filesystem creation time. +.IP \fB\-I\fP 4 +It is typical for fixed disk devices to be partitioned so, by default, you +are not permitted to create a filesystem across the entire device. +\fBmkfs.fat\fP will complain and tell you that it refuses to work. This is +different when using MO disks. One doesn't always need partitions on MO +disks. The filesystem can go directly to the whole disk. Under other OSes +this is known as the 'superfloppy' format. This switch will force +\fBmkfs.fat\fP to work properly. +.IP "\fB\-l\fP \fIFILENAME\fP" 4 +Read the bad blocks list from \fIFILENAME\fP. +.IP "\fB\-m\fP \fIMESSAGE\-FILE\fP" 4 +Sets the message the user receives on attempts to boot this filesystem +without having properly installed an operating system. The message file +must not exceed 418 bytes once line feeds have been converted to carriage +return\-line feed combinations, and tabs have been expanded. If the filename +is a hyphen (\-), the text is taken from standard input. +.IP "\fB\-M\fP \fIFAT\-MEDIA\-TYPE\fP" 4 +Specify the media type to be stored in the FAT boot sector. This value is +usually 0xF8 for hard disks and is 0xF0 or a value from 0xF9 to 0xFF for +floppies or partitions to be used for floppy emulation. +.IP "\fB\-n\fP \fIVOLUME\-NAME\fP" 4 +Sets the volume name (label) of the filesystem. The volume name can be up +to 11 characters long. The default is no label. +.IP "\fB\-r\fP \fIROOT\-DIR\-ENTRIES\fP" 4 +Select the number of entries available in the root directory. The default +is 112 or 224 for floppies and 512 for hard disks. +.IP "\fB\-R\fP \fINUMBER\-OF\-RESERVED\-SECTORS\fP" 4 +Select the number of reserved sectors. With FAT32 format at least 2 +reserved sectors are needed, the default is 32. Otherwise the default is 1 +(only the boot sector). +.IP "\fB\-s\fP \fISECTORS\-PER\-CLUSTER\fP" 4 +Specify the number of disk sectors per cluster. Must be a power of 2, +i.e. 1, 2, 4, 8, ... 128. +.IP "\fB\-S\fP \fILOGICAL\-SECTOR\-SIZE\fP" 4 +Specify the number of bytes per logical sector. Must be a power of 2 and +greater than or equal to 512, i.e. 512, 1024, 2048, 4096, 8192, 16384, or +32768. +.IP \fB\-v\fP 4 +Verbose execution. +.IP \fB\-\-invariant\fP 4 +Use constants for normally randomly generated or time based data such as +volume ID and creation time. Multiple runs of \fBmkfs.fat\fP on the same +device create identical results with this option. Its main purpose is +testing \fBmkfs.fat\fP. +.IP \fB\-\-help\fP 4 +.\" ---------------------------------------------------------------------------- +Display option summary and exit. +.SH BUGS +.\" ---------------------------------------------------------------------------- +\fBmkfs.fat\fP can not create boot\-able filesystems. This isn't as easy as you +might think at first glance for various reasons and has been discussed a lot +already. \fBmkfs.fat\fP simply will not support it ;) +.SH "SEE ALSO" +\fBfatlabel\fP(8) +.br +.\" ---------------------------------------------------------------------------- +\fBfsck.fat\fP(8) +.SH HOMEPAGE +.\" ---------------------------------------------------------------------------- +The home for the \fBdosfstools\fP project is its +.UR https://github.com/dosfstools/dosfstools +GitHub project page +.UE . +.SH AUTHORS +\fBdosfstools\fP were written by +.MT werner.almesberger@\:lrc.di.epfl.ch +Werner Almesberger +.ME , +.MT Roman.Hodek@\:informatik.\:uni-erlangen.de +Roman Hodek +.ME , +and others. The current maintainer is +.MT aeb@\:debian.org +Andreas Bombe +.ME . diff --git a/dosfstools/manpages/en/fatlabel.8 b/dosfstools/manpages/en/fatlabel.8 new file mode 100644 index 000000000..c00a79517 --- /dev/null +++ b/dosfstools/manpages/en/fatlabel.8 @@ -0,0 +1,65 @@ +.\" fatlabel.8 - manpage for fatlabel +.\" +.\" Copyright (C) 2006-2014 Daniel Baumann +.\" +.\" This program is free software: you can redistribute it and/or modify +.\" it under the terms of the GNU General Public License as published by +.\" the Free Software Foundation, either version 3 of the License, or +.\" (at your option) any later version. +.\" +.\" This program is distributed in the hope that it will be useful, +.\" but WITHOUT ANY WARRANTY; without even the implied warranty of +.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.\" GNU General Public License for more details. +.\" +.\" You should have received a copy of the GNU General Public License +.\" along with this program. If not, see . +.\" +.\" The complete text of the GNU General Public License +.\" can be found in /usr/share/common-licenses/GPL-3 file. +.\" +.\" +.TH FATLABEL 8 2015\-05\-16 3.0.28 "dosfstools" +.SH NAME +\fBfatlabel\fR \- set or get MS\-DOS filesystem label +.\" ---------------------------------------------------------------------------- +.SH SYNOPSIS +\fBfatlabel\fR \fIDEVICE\fR [\fILABEL\fR] +.\" ---------------------------------------------------------------------------- +.SH DESCRIPTION +\fBfatlabel\fR set or gets a MS\-DOS filesystem label from a given device. +.PP +If \fILABEL\fR is omitted, then the label name of the specified device is +written on the standard output. +A label can't be longer than 11 bytes. +.\" ---------------------------------------------------------------------------- +.SH OPTIONS +.IP "\fB\-h\fR, \fB\-\-help\fR" 4 +Displays a help message. +.IP "\fB\-V\fR, \fB\-\-version\fR" 4 +Shows version. +.\" ---------------------------------------------------------------------------- +.SH SEE ALSO +\fBfsck.fat\fR(8) +.br +\fBmkfs.fat\fR(8) +.\" ---------------------------------------------------------------------------- +.SH HOMEPAGE +The home for the \fBdosfstools\fR project is its +.UR https://github.com/dosfstools/dosfstools +GitHub project page +.UE . +.\" ---------------------------------------------------------------------------- +.SH AUTHORS +\fBdosfstools\fR were written by +.MT werner.almesberger@\:lrc.di.epfl.ch +Werner Almesberger +.ME , +.MT Roman.Hodek@\:informatik.\:uni-erlangen.de +Roman Hodek +.ME , +and others. +The current maintainer is +.MT aeb@\:debian.org +Andreas Bombe +.ME . diff --git a/dosfstools/manpages/en/fsck.fat.8 b/dosfstools/manpages/en/fsck.fat.8 new file mode 100644 index 000000000..f2d44d080 --- /dev/null +++ b/dosfstools/manpages/en/fsck.fat.8 @@ -0,0 +1,206 @@ +.\" fsck.fat.8 - manpage for fsck.fat +.\" +.\" Copyright (C) 2006-2014 Daniel Baumann +.\" +.\" This program is free software: you can redistribute it and/or modify +.\" it under the terms of the GNU General Public License as published by +.\" the Free Software Foundation, either version 3 of the License, or +.\" (at your option) any later version. +.\" +.\" This program is distributed in the hope that it will be useful, +.\" but WITHOUT ANY WARRANTY; without even the implied warranty of +.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.\" GNU General Public License for more details. +.\" +.\" You should have received a copy of the GNU General Public License +.\" along with this program. If not, see . +.\" +.\" The complete text of the GNU General Public License +.\" can be found in /usr/share/common-licenses/GPL-3 file. +.\" +.\" +.TH FSCK.FAT 8 2015\-05\-16 3.0.28 "dosfstools" +.SH NAME +\fBfsck.fat\fR \- check and repair MS\-DOS filesystems +.\" ---------------------------------------------------------------------------- +.SH SYNOPSIS +\fBfsck.fat\fR [\fIOPTIONS\fR] \fIDEVICE\fR +.\" ---------------------------------------------------------------------------- +.SH DESCRIPTION +\fBfsck.fat\fR verifies the consistency of MS\-DOS filesystems and optionally +tries to repair them. +.PP +The following filesystem problems can be corrected (in this order): +.IP "*" 4 +FAT contains invalid cluster numbers. +Cluster is changed to EOF. +.IP "*" 4 +File's cluster chain contains a loop. +The loop is broken. +.IP "*" 4 +Bad clusters (read errors). +The clusters are marked bad and they are removed from files owning them. +This check is optional. +.IP "*" 4 +Directories with a large number of bad entries (probably corrupt). +The directory can be deleted. +.IP "*" 4 +Files . and .. are non\-directories. +They can be deleted or renamed. +.IP "*" 4 +Directories . and .. in root directory. +They are deleted. +.IP "*" 4 +Bad filenames. +They can be renamed. +.IP "*" 4 +Duplicate directory entries. +They can be deleted or renamed. +.IP "*" 4 +Directories with non\-zero size field. +Size is set to zero. +.IP "*" 4 +Directory . does not point to parent directory. +The start pointer is adjusted. +.IP "*" 4 +Directory .. does not point to parent of parent directory. +The start pointer is adjusted. +.IP "*" 4 +Start cluster number of a file is invalid. +The file is truncated. +.IP "*" 4 +File contains bad or free clusters. +The file is truncated. +.IP "*" 4 +File's cluster chain is longer than indicated by the size fields. +The file is truncated. +.IP "*" 4 +Two or more files share the same cluster(s). +All but one of the files are truncated. +If the file being truncated is a directory file that has already been read, the +filesystem check is restarted after truncation. +.IP "*" 4 +File's cluster chain is shorter than indicated by the size fields. +The file is truncated. +.IP "*" 4 +Clusters are marked as used but are not owned by a file. +They are marked as free. +.PP +Additionally, the following problems are detected, but not repaired: +.IP "*" 4 +Invalid parameters in boot sector +.IP "*" 4 +Absence of . and .. entries in non\-root directories +.PP +When \fBfsck.fat\fR checks a filesystem, it accumulates all changes in memory +and performs them only after all checks are complete. +This can be disabled with the \fB\-w\fR option. +.\" ---------------------------------------------------------------------------- +.SH OPTIONS +.IP "\fB\-a\fR" 4 +Automatically repair the filesystem. +No user intervention is necessary. +Whenever there is more than one method to solve a problem, the least +destructive approach is used. +.IP "\fB\-A\fR" 4 +Use Atari variation of the MS\-DOS filesystem. +This is default if \fBfsck.fat\fR is run on an Atari, then this option turns +off Atari format. +There are some minor differences in Atari format: +Some boot sector fields are interpreted slightly different, and the special FAT +entries for end\-of\-file and bad cluster can be different. +Under MS\-DOS 0xfff8 is used for EOF and Atari employs 0xffff by default, but +both systems recognize all values from 0xfff8...0xffff as end\-of\-file. +MS\-DOS uses only 0xfff7 for bad clusters, where on Atari values 0xfff0...0xfff7 +are for this purpose (but the standard value is still 0xfff7). +.IP "\fB-b\fR" 4 +Make read-only boot sector check. +.IP "\fB\-d\fR \fIPATH\fR" 4 +Delete the specified file. +If more than one file with that name exist, the first one is deleted. +This option can be given more than once. +.IP "\fB\-f\fR" 4 +Salvage unused cluster chains to files. +By default, unused clusters are added to the free disk space except in auto mode +(\fB\-a\fR). +.IP "\fB\-l\fR" 4 +List path names of files being processed. +.IP "\fB\-n\fR" 4 +No\-operation mode: non\-interactively check for errors, but don't write +anything to the filesystem. +.IP "\fB\-p\fR" 4 +Same as \fB\-a\fR, for compatibility with other *fsck. +.IP "\fB\-r\fR" 4 +Interactively repair the filesystem. +The user is asked for advice whenever there is more than one approach to fix an +inconsistency. +This is the default mode and the option is only retained for backwards +compatibility. +.IP "\fB\-t\fR" 4 +Mark unreadable clusters as bad. +.IP "\fB\-u\fR \fIPATH\fR" 4 +Try to undelete the specified file. +\fBfsck.fat\fR tries to allocate a chain of contiguous unallocated clusters +beginning with the start cluster of the undeleted file. +This option can be given more than once. +.IP "\fB\-v\fR" 4 +Verbose mode. +Generates slightly more output. +.IP "\fB\-V\fR" 4 +Perform a verification pass. +The filesystem check is repeated after the first run. +The second pass should never report any fixable errors. +It may take considerably longer than the first pass, because the first pass may +have generated long list of modifications that have to be scanned for each disk +read. +.IP "\fB\-w\fR" 4 +Write changes to disk immediately. +.IP "\fB\-y\fR" 4 +Same as \fB\-a\fR (automatically repair filesystem) for compatibility with other +fsck tools. +.\" ---------------------------------------------------------------------------- +.SH "EXIT STATUS" +.IP "0" 4 +No recoverable errors have been detected. +.IP "1" 4 +Recoverable errors have been detected or \fBfsck.fat\fR has discovered an +internal inconsistency. +.IP "2" 4 +Usage error. +\fBfsck.fat\fR did not access the filesystem. +.\" ---------------------------------------------------------------------------- +.SH FILES +.IP "fsck0000.rec, fsck0001.rec, ..." 4 +When recovering from a corrupted filesystem, \fBfsck.fat\fR dumps recovered data +into files named 'fsckNNNN.rec' in the top level directory of the filesystem. +.\" ---------------------------------------------------------------------------- +.SH BUGS +Does not create . and .. files where necessary. +Does not remove entirely empty directories. +Should give more diagnostic messages. +Undeleting files should use a more sophisticated algorithm. +.\" ---------------------------------------------------------------------------- +.SH SEE ALSO +\fBfatlabel\fR(8) +.br +\fBmkfs.fat\fR(8) +.\" ---------------------------------------------------------------------------- +.SH HOMEPAGE +The home for the \fBdosfstools\fR project is its +.UR https://github.com/dosfstools/dosfstools +GitHub project page +.UE . +.\" ---------------------------------------------------------------------------- +.SH AUTHORS +\fBdosfstools\fR were written by +.MT werner.almesberger@\:lrc.di.epfl.ch +Werner Almesberger +.ME , +.MT Roman.Hodek@\:informatik.\:uni-erlangen.de +Roman Hodek +.ME , +and others. +The current maintainer is +.MT aeb@\:debian.org +Andreas Bombe +.ME . diff --git a/dosfstools/manpages/en/mkfs.fat.8 b/dosfstools/manpages/en/mkfs.fat.8 new file mode 100644 index 000000000..5a5086efc --- /dev/null +++ b/dosfstools/manpages/en/mkfs.fat.8 @@ -0,0 +1,178 @@ +.\" mkfs.fat.8 - manpage for fs.fatck +.\" +.\" Copyright (C) 2006-2014 Daniel Baumann +.\" +.\" This program is free software: you can redistribute it and/or modify +.\" it under the terms of the GNU General Public License as published by +.\" the Free Software Foundation, either version 3 of the License, or +.\" (at your option) any later version. +.\" +.\" This program is distributed in the hope that it will be useful, +.\" but WITHOUT ANY WARRANTY; without even the implied warranty of +.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +.\" GNU General Public License for more details. +.\" +.\" You should have received a copy of the GNU General Public License +.\" along with this program. If not, see . +.\" +.\" The complete text of the GNU General Public License +.\" can be found in /usr/share/common-licenses/GPL-3 file. +.\" +.\" +.TH MKFS.FAT 8 2015\-05\-16 3.0.28 "dosfstools" +.SH NAME +\fBmkfs.fat\fR \- create an MS-DOS filesystem under Linux +.\" ---------------------------------------------------------------------------- +.SH SYNOPSIS +\fBmkfs.fat\fR [\fIOPTIONS\fR] \fIDEVICE\fR [\fIBLOCK-COUNT\fR] +.\" ---------------------------------------------------------------------------- +.SH DESCRIPTION +\fBmkfs.fat\fR is used to create an MS-DOS filesystem under Linux on a device +(usually a disk partition). +\fIDEVICE\fR is the special file corresponding to the device (e.g. /dev/sdXX). +\fIBLOCK-COUNT\fR is the number of blocks on the device. +If omitted, \fBmkfs.fat\fR automatically determines the filesystem size. +.\" ---------------------------------------------------------------------------- +.SH OPTIONS +.IP "\fB\-a\fR" 4 +Normally, for any filesystem except very small ones, \fBmkfs.fat\fR will align +all the data structures to cluster size, to make sure that as long as the +partition is properly aligned, so will all the data structures in the +filesystem. +This option disables alignment; this may provide a handful of additional +clusters of storage at the expense of a significant performance degradation on +RAIDs, flash media or large-sector hard disks. +.IP "\fB \-A\fR" 4 +Use Atari variation of the MS-DOS filesystem. +This is default if \fBmkfs.fat\fR is run on an Atari, then this option turns off +Atari format. +There are some differences when using Atari format: +If not directed otherwise by the user, \fBmkfs.fat\fR will always use 2 sectors +per cluster, since GEMDOS doesn't like other values very much. +It will also obey the maximum number of sectors GEMDOS can handle. +Larger filesystems are managed by raising the logical sector size. +Under Atari format, an Atari-compatible serial number for the filesystem is +generated, and a 12 bit FAT is used only for filesystems that have one of the +usual floppy sizes (720k, 1.2M, 1.44M, 2.88M), a 16 bit FAT otherwise. +This can be overridden with the \fB\-F\fR option. +Some PC-specific boot sector fields aren't written, and a boot message (option +\fB\-m\fR) is ignored. +.IP "\fB\-b\fR \fISECTOR-OF-BACKUP\fR" 4 +Selects the location of the backup boot sector for FAT32. +Default depends on number of reserved sectors, but usually is sector 6. +The backup must be within the range of reserved sectors. +.IP "\fB\-c" 4 +Check the device for bad blocks before creating the filesystem. +.IP "\fB\-C\fR" 4 +Create the file given as \fIDEVICE\fR on the command line, and write the +to-be-created filesystem to it. +This can be used to create the new filesystem in a file instead of on a real +device, and to avoid using \fBdd\fR in advance to create a file of appropriate +size. +With this option, the \fIBLOCK-COUNT\fR must be given, because otherwise the +intended size of the filesystem wouldn't be known. +The file created is a sparse file, which actually only contains the meta-data +areas (boot sector, FATs, and root directory). +The data portions won't be stored on the disk, but the file nevertheless will +have the correct size. +The resulting file can be copied later to a floppy disk or other device, or +mounted through a loop device. +.IP "\fB\-D\fR \fIDRIVE-NUMBER\fR" 4 +Specify the BIOS drive number to be stored in the FAT boot sector. +This value is usually 0x80 for hard disks and 0x00 for floppy devices or +partitions to be used for floppy emulation. +.IP "\fB\-f\fR \fINUMBER-OF-FATS\fR" 4 +Specify the number of file allocation tables in the filesystem. +The default is 2. +.IP "\fB\-F\fR \fIFAT-SIZE\fR" 4 +Specifies the type of file allocation tables used (12, 16 or 32 bit). +If nothing is specified, \fBmkfs.fat\fR will automatically select between 12, 16 +and 32 bit, whatever fits better for the filesystem size. +.IP "\fB\-h\fR \fINUMBER-OF-HIDDEN-SECTORS\fR" 4 +Select the number of hidden sectors in the volume. +Apparently some digital cameras get indigestion if you feed them a CF card +without such hidden sectors, this option allows you to satisfy them. +.IP "\fB\-i\fR \fIVOLUME-ID\fR" 4 +Sets the volume ID of the newly created filesystem; \fIVOLUME-ID\fR is a 32-bit +hexadecimal number (for example, 2e24ec82). +The default is a number which depends on the filesystem creation time. +.IP "\fB\-I\fR" 4 +It is typical for fixed disk devices to be partitioned so, by default, you are +not permitted to create a filesystem across the entire device. +\fBmkfs.fat\fR will complain and tell you that it refuses to work. +This is different when using MO disks. +One doesn't always need partitions on MO disks. +The filesystem can go directly to the whole disk. +Under other OSes this is known as the 'superfloppy' format. +This switch will force \fBmkfs.fat\fR to work properly. +.IP "\fB\-l\fR \fIFILENAME\fR" 4 +Read the bad blocks list from \fIFILENAME\fR. +.IP "\fB\-m\fR \fIMESSAGE-FILE\fR" 4 +Sets the message the user receives on attempts to boot this filesystem without +having properly installed an operating system. +The message file must not exceed 418 bytes once line feeds have been converted +to carriage return-line feed combinations, and tabs have been expanded. +If the filename is a hyphen (-), the text is taken from standard input. +.IP "\fB\-M\fR \fIFAT-MEDIA-TYPE\fR" 4 +Specify the media type to be stored in the FAT boot sector. +This value is usually 0xF8 for hard disks and is 0xF0 or a value from 0xF9 to +0xFF for floppies or partitions to be used for floppy emulation. +.IP "\fB\-n\fR \fIVOLUME-NAME\fR" 4 +Sets the volume name (label) of the filesystem. +The volume name can be up to 11 characters long. +The default is no label. +.IP "\fB\-r\fR \fIROOT-DIR-ENTRIES\fR" 4 +Select the number of entries available in the root directory. +The default is 112 or 224 for floppies and 512 for hard disks. +.IP "\fB\-R\fR \fINUMBER-OF-RESERVED-SECTORS\fR" 4 +Select the number of reserved sectors. +With FAT32 format at least 2 reserved sectors are needed, the default is 32. +Otherwise the default is 1 (only the boot sector). +.IP "\fB\-s\fR \fISECTORS-PER-CLUSTER\fR" 4 +Specify the number of disk sectors per cluster. +Must be a power of 2, i.e. 1, 2, 4, 8, ... 128. +.IP "\fB\-S\fR \fILOGICAL-SECTOR-SIZE\fR" 4 +Specify the number of bytes per logical sector. +Must be a power of 2 and greater than or equal to 512, i.e. 512, 1024, 2048, +4096, 8192, 16384, or 32768. +.IP "\fB\-v\fR" 4 +Verbose execution. +.IP "\fB\-\-invariant\fR" 4 +Use constants for normally randomly generated or time based data such as +volume ID and creation time. +Multiple runs of \fBmkfs.fat\fR on the same device create identical results +with this option. +Its main purpose is testing \fBmkfs.fat\fR. +.IP "\fB\-\-help\fR" 4 +Display option summary and exit. +.\" ---------------------------------------------------------------------------- +.SH BUGS +\fBmkfs.fat\fR can not create boot-able filesystems. +This isn't as easy as you might think at first glance for various reasons and +has been discussed a lot already. +\fBmkfs.fat\fR simply will not support it ;) +.\" ---------------------------------------------------------------------------- +.SH SEE ALSO +\fBfatlabel\fR(8) +.br +\fBfsck.fat\fR(8) +.\" ---------------------------------------------------------------------------- +.SH HOMEPAGE +The home for the \fBdosfstools\fR project is its +.UR https://github.com/dosfstools/dosfstools +GitHub project page +.UE . +.\" ---------------------------------------------------------------------------- +.SH AUTHORS +\fBdosfstools\fR were written by +.MT werner.almesberger@\:lrc.di.epfl.ch +Werner Almesberger +.ME , +.MT Roman.Hodek@\:informatik.\:uni-erlangen.de +Roman Hodek +.ME , +and others. +The current maintainer is +.MT aeb@\:debian.org +Andreas Bombe +.ME . diff --git a/dosfstools/manpages/po/de/fatlabel.8.po b/dosfstools/manpages/po/de/fatlabel.8.po new file mode 100644 index 000000000..a2b6da2e8 --- /dev/null +++ b/dosfstools/manpages/po/de/fatlabel.8.po @@ -0,0 +1,173 @@ +# German translations for dosfstools package +# +msgid "" +msgstr "" +"Project-Id-Version: dosfstools VERSION\n" +"POT-Creation-Date: 2015-05-16 00:40+0200\n" +"PO-Revision-Date: 2013-06-06 09:34+0300\n" +"Last-Translator: Automatically generated\n" +"Language-Team: none\n" +"Language: de\n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=ASCII\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#. type: TH +#: en/fatlabel.8:22 +#, no-wrap +msgid "FATLABEL" +msgstr "" + +#. type: TH +#: en/fatlabel.8:22 en/fsck.fat.8:22 en/mkfs.fat.8:22 +#, no-wrap +msgid "2015-05-16" +msgstr "" + +#. type: TH +#: en/fatlabel.8:22 en/fsck.fat.8:22 en/mkfs.fat.8:22 +#, no-wrap +msgid "3.0.28" +msgstr "" + +#. type: TH +#: en/fatlabel.8:22 en/fsck.fat.8:22 en/mkfs.fat.8:22 +#, no-wrap +msgid "dosfstools" +msgstr "" + +#. type: SH +#: en/fatlabel.8:23 en/fsck.fat.8:23 en/mkfs.fat.8:23 +#, no-wrap +msgid "NAME" +msgstr "" + +#. ---------------------------------------------------------------------------- +#. type: Plain text +#: en/fatlabel.8:26 +msgid "B - set or get MS-DOS filesystem label" +msgstr "" + +#. type: SH +#: en/fatlabel.8:26 en/fsck.fat.8:26 en/mkfs.fat.8:26 +#, no-wrap +msgid "SYNOPSIS" +msgstr "" + +#. ---------------------------------------------------------------------------- +#. type: Plain text +#: en/fatlabel.8:29 +msgid "B I [I