commit | 002f4f32d2c9898c690073b2e21adbaa04128e3b | [log] [tgz] |
---|---|---|
author | Namjae Jeon <linkinjeon@gmail.com> | Fri Apr 10 08:52:54 2020 +0900 |
committer | Namjae Jeon <linkinjeon@gmail.com> | Sat Apr 11 10:19:42 2020 +0900 |
tree | 4583f455c83bf88543a612c2cef1dbeb3b100aa5 | |
parent | aa15575ed98f55d9de65dbd3ae068d413d6ad718 [diff] |
exfat-utils: make -n option fallthrough to -l option for backward compatibility with old utils Vojtech Trefny concern about backwards compatibility with the fuse exfat userspace utilities. The difference is in command line options for mkfs.exfat that are using -l for label, the exfat fuse mkfs is using -n. This patch make -n option fallthrough to -l option for backward compatibility with old utils. Reported-by: Vojtech Trefny <vtrefny@redhat.com> Signed-off-by: Namjae Jeon <linkinjeon@gmail.com>
exfat-utils is mkfs(format)/fsck(repair) implementation for exfat filesystem under GNU GPL version 2.
Install preprequisite packages:
For Ubuntu: sudo apt-get install autoconf libtool pkg-config For Fedora, RHEL: sudo yum install autoconf automake libtool
Build steps:
cd into the exfat-utils directory ./autogen.sh ./configure make make install
- mkfs.exfat: Build a exfat filesystem on a device or partition(e.g. /dev/hda1, dev/sda1). Usage example: 1. No option(default) : cluster size adjustment as per device size, quick format. mkfs.exfat /dev/sda1 2. To change cluster size(KB or MB or Byte) user want mkfs.exfat -c 1048576 /dev/sda1 mkfs.exfat -c 1024K /dev/sda1 mkfs.exfat -c 1M /dev/sda1 3. For full format(zero out) mkfs.exfat -f /dev/sda1 4. For set volume label, use -l option with string user want. mkfs.exfat -l "my usb" /dev/sda1 - fsck.exfat: Check the consistency of your exfat filesystem and optinally repair a corrupted device formatted by exfat. Usage example: 1. check the consistency. fsck.exfat /dev/sda1 2. repair and fix.(preparing)