Code Monkey home page Code Monkey logo

btrfs-dev-docs's Introduction

Developer documentation of btrfs

Collection of documents that describe internals of the BTRFS filesystem. This is work in progress and not complete. The target audience are developers and not users (refer to btrfs manual pages).

Quick start:

  • collect your notes about an area you understand, have reviewed or have documented already
  • start a whole structure of the docs, chapters, sections, ...
  • you can skip fancy formatting for now
  • document how things are implemented, the main areas, operations
  • give high-level overview

Examples of topics to cover:

  • design
    • how data are organized in b-trees, shadowin/clones etc
    • backreferences
    • physical and logical addressing (aka. chunk tree mappings)
    • data structures
    • free space tracking
    • purpose of various trees
  • implementation
    • interaction with pagecache (data and metadata), extents vs pages
    • delayed refs
    • orphan files
    • locking
    • compression write out
    • subvolumes from the inside, radix tree, dentry lookups
    • space reservations
    • transaction commit phases
    • how balance, scrub, dev-replace work
  • interactions with other core subsystems
    • ioctl interface
    • VFS: xattr, acl
    • workqueues
    • mount

Workflow:

  • initially clone the repository
  • create a branch, start a new document or edit existing
  • send pull request

Note: master branch is protected and should never be rebased, everything should go through pull/merge requests. We don't need sign-off, etc. For changelog, a short description is ok.

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.