Comments (2)
It looks like the problem is here
Line 287 in 25ad8a4
We assume, that end_blk is located at the size bound of file, but that is not true, as we preallocated more than size blocks.
The check does not fail on extent tree of deth 2, as on the second level there are leaf nodes that are in UNINIT state, but starting from depth 3 we have index nodes, which doesn't have that flag
from e2fsprogs.
https://gist.github.com/antmat/9c3ce004a080c50d341e8c3afb22416a
I've created a simple patch, that fixes the problem, but it has a problem itself: if we have a file with holes and preallocated space end_blk should be calculated smarter. Perhaps we could traverse child nodes to determine real bounds or we can leave end_blk zeroed.
from e2fsprogs.
Related Issues (20)
- e2fsdroid is not compiling
- Is there a way to pass selinux file_contexts file to the mkfs.ext4 while building image?
- Extraneous tab inside output of tune2fs HOT 1
- Allow setting root dir permissions directly in mke2fs HOT 2
- e2scrub finds corruption immediately after mounting
- Correct smallest size estimation for `resize2fs` shrink HOT 3
- badblocks fails on large drives due to 32 bit value HOT 1
- Building for Windows
- Is mke2fs GPLv3 compatible? HOT 2
- Building on cygwin
- Building on MINGW
- Whether it is possible to erase the signature of the old file system before executing mkfs.ext4 HOT 1
- e2mkdir 'No free space in the directory' failure HOT 1
- tune2fs asks unwanted questions HOT 6
- Division by zero in e2fsck HOT 1
- `E2FSPROGS_FAKE_TIME` not respected when setting time to 0 HOT 5
- Checking the source code with a static analyzer
- badblocks to ignore HOT 4
- badblocks - text could be improved for write tests
- TRIM remainder after shrinking? HOT 1
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 e2fsprogs.