Comments (2)
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.
Also If I get around to it would anyone be interested in the code?
from ntfs.
Related Issues (19)
- Multiply with oveflow when parsing malformed file system
- Panic when running ntfs_shell::dir in home directory HOT 4
- 2MB clusters lead to "The cluster size is 124928 bytes, but the maximum supported one is 2097152" HOT 3
- Large Sector Sizes HOT 1
- UEFI support HOT 2
- Publish a `0.2` or `0.1.x` version HOT 1
- NtfsFile::data string comparison is not case insensitive HOT 4
- Slice index out of bounds when parsing upcase table for malformed FS HOT 1
- Panic with malformed ntfs in non_resident_value_data_and_position HOT 4
- Infinite loop on NtfsAttributes custom iterator next HOT 3
- Crash in `Record::fixup`, `array_position_end` out of bounds of `self.data` HOT 1
- Crash on `Record::fixup` `sector_position_end` out of bounds of data length and HOT 3
- Crash on `Record::update_sequence_array_count`, substraction overflow HOT 1
- Example is outdated
- MFT may have an attribute list HOT 1
- NTFS file at byte position 0xb820fe000 has no attribute HOT 5
- PhysicalDrive0 vs C: HOT 2
- Panic on empty volume name HOT 2
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 ntfs.