Git Product home page Git Product logo

Comments (3)

ianka avatar ianka commented on September 3, 2024

Such extraordinary huge files are likely bogus. The only valid reason to have such a file is that it is sparse. That means, it consists of zeroes mostly. Pretty much only databases and tools as bittorrent which combine several source files in place create valid files of that sort.

from xfs_undelete.

rems0 avatar rems0 commented on September 3, 2024

Hi,
I managed to extract the relevant data from that file. It was on the first 16606 lines. Using sed or vim was a no go, they filled up the memory and got killed. I managed to extract the data using head -n NNN and try&error to guess the number of lines.

You may want to close this issue as solved, but isn't there an option to avoid this huge files? How can a file be bigger as the underlying FS? Why does -z not work here?
Anyhow, many thanks for xfs_undelete, nice work!

Thanks,
Richard

from xfs_undelete.

ianka avatar ianka commented on September 3, 2024

There's already a lot of sanity check in xfs_undelete. The one that usually triggers is that those huge bogus sparse file often have no data at position 0 and following. But yours had. I don't know.

How can a file be bigger as the underlying FS?

It's a sparse file. It does not occupy that space on the original filesystem. You have to think of it as e.g. one block at position 0 and another block at position 18446744073709551616. It only takes 8192 bytes on disk then.

Why does -z not work here?

Because -z does only delete zeroes at the end of a file, not zeroes inbetween. Oh, and it has the same problems with huge files as vim and sed.

from xfs_undelete.

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.