Comments (4)
Hi @namjaejeon,
Thank you for your quick reply. bd->sector_size
is 4096
. However, some parts of the code in mkfs.c
only write 512 bytes because they rely on the size of some structures (e.g. struct pbr
or struct exbs
) whose size is 512 bytes.
I have written a patch and it fixes the issue. It requires more testing though.
Thanks again,
from exfatprogs.
Okay, Can you check if bd->sector_size is not 4096 ?
int exfat_get_blk_dev_info(struct exfat_user_input *ui,
struct exfat_blk_dev *bd)
...
if (ioctl(fd, BLKSSZGET, &bd->sector_size) < 0)
bd->sector_size = DEFAULT_SECTOR_SIZE;
from exfatprogs.
Sound good!
from exfatprogs.
Fixed
This issue and other issues observed with 4Kn HDDs and reported by @sandeen on the Linux fsdevel mailing list are fixed by the following commits:
- dump: use BytesPerSectorShift of boot sector
- fsck: use BytesPerSectorShift of boot sector to verify boot region
- exfatprogs: libexfat: fix wrong bd->num_sectors calculation
- exfatprogs: tune: use sector size extracted from the boot sector
- mkfs: fix boot sector checksum when the sector size is 4 KB
These changes are included in exfatprogs 1.1.2.
from exfatprogs.
Related Issues (20)
- Detach this fork from old upstream
- Unknown entry type 0xaa HOT 1
- dump.exfat should do more than just disk/volume information HOT 5
- fsck:fix double free of exfat pointer HOT 2
- fsck: fix Out-of-Bounds Accesses in function bytes_to_human_readable HOT 8
- Full format without --full-format ? HOT 4
- Exfatprogs Release Signing Key has expired HOT 2
- exfat-fs fails with a Windows-formatted drive HOT 15
- `fsck.exfat --repair /dev/...` does not ask questions and `fsck.exfat --repair-yes /dev/...` always answers `n` HOT 6
- kernel 3.10.14 is not useful! HOT 3
- Not access to folders HOT 11
- tune.exfat breaks the FS in some cases HOT 9
- pagefile.sys file on exfat partition shows up as 0 bytes HOT 16
- exfat driver documentation missing
- Coverity check - improper use of negative value HOT 9
- mkfs: Documenting default for --boundary-align and --cluster-size HOT 2
- `tune.exfat` and `exfatlabel` don't print an error when setting an invalid volume serial HOT 7
- Setting of the InUse bit of EntryType of Volume Label Entry HOT 1
- BPB sector size field should be user selectable HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exfatprogs.