Giter Club home page Giter Club logo

Comments (2)

ColinFinck avatar ColinFinck commented on July 28, 2024 1

I looked at the code but couldn't judge how safe is it to read directory entry tables directly with this on a live system? I mean, how safe is it to scan a whole disk lets say 5-10 tb while it is being heavily written, with potentially some deletes happening? Can you be reading a folder and it be deleted while reading contents or lets say a file in the folder is deleted?

My current ntfs crate is read-only and doesn't modify the filesystem at all. As a result, it cannot impact the consistency of your filesystem if you use it to read a filesystem that is also being modified right now.

As for crash safety, the crate may return an NtfsError whenever it hits an inconsistent filesystem state. For example, this may be the case when the operating system's filesystem driver concurrently writes to it or when a structure that you are operating on has just been deleted. However, the crate should never crash on invalid data. Special emphasis on this has been put in the recent releases.

Considering how NTFS works, you should be able to access some deleted files and folders using my crate (if you know their file record numbers or simply try out numbers). While the pointers to these files/folders may have been overwritten on disk, the underlying structures are often still intact.

Anyway, if you plan to scan filesystems in the terabyte range, please note that the current version of my crate has not been optimized for performance at all. Your scan may be very slow.

Hope this helps.

from ntfs.

santagada avatar santagada commented on July 28, 2024

Also If I get around to it would anyone be interested in the code?

from ntfs.

Related Issues (19)

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.