Comments (4)
Hi Tom,
The sparse file feature is depends on what filesystem that you're using on the build server. The way it works is that fwup
asks the OS where the holes in a file are and then saves that info to the archive.
About a year ago, I started seeing some CI servers that have filesystems which were pretty unreliable with reporting the holes in sparse files. I never investigated since all of my work since then has been with compressed filesystems that didn't need the feature. I "think" that the common thread was that if the CI server was a virtual machine or a dedicated machine, it worked and if it was in a Docker container, it didn't. I'm not sure, though, and that doesn't make sense to me. My first guess would be to see what filesystem is in use on your build server and see if that provides a hint.
from fwup.
Hello,
Thanks for the reply. It seems somehow, the file is not sparse, and it's on a pure ext4 filesystem. I am using yocto, and it seems on my buildserver, I have the file with a timestamp, and one without the timestamp. I discovered a tool called fallocate, which is on linux, and you can recreate a file to be sparse. So I tried with "fallocate -d rootfs.img -v" on the rootfs.img with a timestamp, and it only detected 32mb of sparse space. And I tried with the non-timestamped version, and that could detect 400 mb of sparse space. When I now run fwup using the non-timestamped version, then fwup detects correctly that it is a sparse file and the fwup data directory contains the 1,2 GB file instead of a 1,6 GB file.
So that hopefully fixes it for me now
from fwup.
Hi, it seems that fixed it for me.
from fwup.
Interesting. Thanks for following up.
from fwup.
Related Issues (20)
- MBR partitions expansion not working on OSX HOT 1
- metadata tests failing HOT 4
- gpt checksum problem HOT 7
- require-partition-offset with gpt HOT 3
- Handle new line characters in `--public-key` HOT 2
- boot=true flag fails for gpt HOT 1
- Fail if meta-product is not correct HOT 3
- v1.8.2 Autodetect of `dev/mmcblk0` fails due to `/sys/block/mmcblk0/removable` returning 0 HOT 4
- Test Suite fails for v1.8.2 compile on NixOS HOT 3
- Could anyone help me move CI from Travis-CI to anywhere else? HOT 1
- fsck.fat v4.2 failure HOT 4
- Failed to start File System Check on Root Device HOT 6
- fwup:amd64 : Depends: libc6:amd64 (>= 2.4) but it is not installable HOT 8
- Add `.deb` for `aarch64` to the releases
- zlib-1.2.11 is no longer available from zlib.net HOT 3
- Add lock file support
- Support usb drive or card reader HOT 4
- Compiling with glibc 2.36 fails due to conflicting headers HOT 1
- xdelta tries to read too much data HOT 5
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 fwup.