Giter Club home page Giter Club logo

Comments (4)

fhunleth avatar fhunleth commented on September 2, 2024

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.

deblauwetom avatar deblauwetom commented on September 2, 2024

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.

deblauwetom avatar deblauwetom commented on September 2, 2024

Hi, it seems that fixed it for me.

from fwup.

fhunleth avatar fhunleth commented on September 2, 2024

Interesting. Thanks for following up.

from fwup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.