Coder Social home page Coder Social logo

ext2fs's Introduction

ext2fs

https://godoc.org/github.com/r0t3n/ext2fs

A golang alternative to using debugfs to lookup filesystem objects via inode and block number(s).

Makes use of the libext2fs C library from e2fsprogs based on 1.42.11 api

Example usage

dd if=/dev/urandom of=~/out bs=1M count=1 conv=fdatasync 1+0 records in 1+0 records out 1048576 bytes (1.0 MB) copied, 0.173941 s, 6.0 MB/s

ls -i ~/out 19420 /root/out

./example -s -device /dev/sda1 -inode 19420 Processed 1842 dirs, 13079 files, 1 matches Inode Filename [flags] #Blocks Blocks 19420 /root/out [e]#255 1445632-1445887

Block types

EXT2_DIR_BLOCK : Is a directory (no blocks returned)

EXT2_EXTENT_BLOCK : Uses extent block layout

EXT2_DATA_BLOCK : Uses data blocks layout

ext2fs's People

Contributors

norrchr avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

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.