-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #54 from namjaejeon/exfat-next
Exfat next
- Loading branch information
Showing
41 changed files
with
2,675 additions
and
870 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/bin/sh | ||
|
||
# | ||
# A simple script we are using to get the latest mainline kernel | ||
# tar ball | ||
# | ||
|
||
wget https://www.kernel.org/releases.json | ||
if [ $? -ne 0 ]; then | ||
echo "Could not download kernel.org/releases.json" | ||
exit 1 | ||
fi | ||
|
||
VER=$(cat releases.json | python2.7 -c "import sys, json; print json.load(sys.stdin)['latest_stable']['version']") | ||
if [ $? -ne 0 ]; then | ||
echo "Could not parse release.json" | ||
exit 1 | ||
fi | ||
|
||
if [ "z$VER" = "z" ]; then | ||
echo "Could not determine latest release version" | ||
exit 1 | ||
fi | ||
|
||
MVER=$(echo $VER | cut -d. -f1) | ||
|
||
wget https://cdn.kernel.org/pub/linux/kernel/v"$MVER".x/linux-"$VER".tar.gz | ||
if [ $? -ne 0 ]; then | ||
echo "Could not download $VER kernel version" | ||
exit 1 | ||
fi | ||
|
||
tar xf linux-"$VER".tar.gz | ||
if [ $? -ne 0 ]; then | ||
echo "Could not untar kernel tar ball" | ||
exit 1 | ||
fi | ||
|
||
mv linux-"$VER" linux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,10 @@ Usage example: | |
mkfs.exfat -f /dev/sda1 | ||
4. For set volume label, use -l option with string user want. | ||
mkfs.exfat -L "my usb" /dev/sda1 | ||
5. To change boundary alignment(KB or MB or Byte) user want | ||
mkfs.exfat -b 16777216 /dev/sda1 | ||
mkfs.exfat -b 16384K /dev/sda1 | ||
mkfs.exfat -b 16M /dev/sda1 | ||
- fsck.exfat: | ||
Check the consistency of your exfat filesystem and optionally repair a corrupted device formatted by exfat. | ||
|
@@ -59,12 +63,57 @@ Usage example: | |
tune.exfat -l /dev/sda1 | ||
2. set new volume label. | ||
tune.exfat -L "new label" /dev/sda1 | ||
3. print current volume serial. | ||
tune.exfat -i /dev/sda1 | ||
4. set new volume serial. | ||
tune.exfat -I 0x12345678 /dev/sda1 | ||
- exfatlabel: | ||
Get or Set volume label or serial | ||
Usage example: | ||
1. get current volume label. | ||
exfatlabel /dev/sda1 | ||
2. set new volume label. | ||
exfatlabel /dev/sda1 "new label" | ||
3. get current volume serial. | ||
exfatlabel -i /dev/sda1 | ||
4. set new volume serial. | ||
exfatlabel -i /dev/sda1 0x12345678 | ||
- dump.exfat: | ||
Show on-disk information | ||
Usage example: | ||
dump.exfat /dev/sda1 | ||
``` | ||
|
||
## Benchmarks | ||
|
||
Some fsck implementations were tested and compared for Samsung 64GB Pro | ||
microSDXC UHS-I Class 10 which was filled up to 35GB with 9948 directories | ||
and 16506 files by fsstress. | ||
|
||
The difference in the execution time for each testing is very small. | ||
|
||
|
||
| Implementation | version | execution time (seconds) | | ||
|----------------------|-----------------|--------------------------| | ||
| **exfatprogs fsck** | 1.0.4 | 11.561 | | ||
| Windows fsck | Windows 10 1809 | 11.449 | | ||
| [exfat-fuse fsck] | 1.3.0 | 68.977 | | ||
|
||
[exfat-fuse fsck]: https://github.com/relan/exfat | ||
|
||
## Sending feedback | ||
If you have any issues, please create [issues][1] or contact to [Namjae Jeon](mailto:[email protected]) and | ||
[Hyunchul Lee](mailto:[email protected]). | ||
[Contributions][2] are also welcome. | ||
|
||
[1]: https://github.com/exfatprogs/exfatprogs/issues | ||
[2]: https://github.com/exfatprogs/exfatprogs/pulls | ||
|
||
## Contributor information | ||
* Please base your pull requests on the `exfat-next` branch. | ||
* Make sure you add 'Signed-Off' information to your commits (e. g. `git commit --signoff`). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// Copyright 2021 The Android Open Source Project | ||
|
||
cc_binary { | ||
name: "dump.exfat", | ||
|
||
srcs: [ | ||
"dump.c", | ||
], | ||
defaults: ["exfatprogs-defaults"], | ||
static_libs: ["libexfat"], | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
AM_CFLAGS = -Wall -include $(top_builddir)/config.h -I$(top_srcdir)/include -fno-common | ||
dump_exfat_LDADD = $(top_builddir)/lib/libexfat.a | ||
|
||
sbin_PROGRAMS = dump.exfat | ||
|
||
dump_exfat_SOURCES = dump.c |
Oops, something went wrong.