Giter Club home page Giter Club logo

btrfs's Introduction

btrfs-pp - Pretty Print btrfs-progs

This is a collection of simple 'pretty-printing' functions that combine the output of different btrfs-progs submodules.

Requires: plumbum

pip install plumbum --user

Usage

› sudo ./btrfs-pp --help
Various pretty-printers for btrfs diagnostic information
Usage:
    btrfs-pp [SWITCHES] [SUBCOMMAND [SWITCHES]]

Meta-switches:
    -h, --help     Prints this help message and quits
    -v, --version  Prints the program's version and quits

Subcommands:
    quota          Join 'btrfs qgroup show' output with 'btrfs subvolume list' ; see 'btrfs-pp quota --help' for more info

Quota

› sudo ./btrfs-pp quota --help
Join 'btrfs qgroup show' output with 'btrfs subvolume list'
Usage:
    btrfs-pp quota [SWITCHES] fspath

Meta-switches:
    -h, --help     Prints this help message and quits
    -v, --version  Prints the program's version and quits

Switches:
    -o             print only subvolumes below specified path

This joins the output of btrfs qgroup show with btrfs subvolume list .

Example

› sudo ./btrfs-pp quota -o /var/lib/docker/btrfs/subvolumes
Subvolume       Referenced      Exclusive
docker/btrfs/subvolumes/511136ea3c5a64f264b78b5433614aec563103b4d4702f3ba7d4d2698e22c158        16.00KiB        16.00KiB
docker/btrfs/subvolumes/f3c84ac3a0533f691c9fea4cc2ceaaf43baec22bf8d6a479e069f6d814be9b86        194.45MiB       480.00KiB
docker/btrfs/subvolumes/a1a958a248181c9aa6413848cd67646e5afb9797f1a3da5995c7a636f050f537        194.45MiB       112.00KiB
docker/btrfs/subvolumes/9fec74352904baf5ab5237caa39a84b0af5c593dc7cc08839e2ba65193024507        194.45MiB       80.00KiB
docker/btrfs/subvolumes/d0955f21bf24f5bfffd32d2d0bb669d0564701c271bc3dfc64cfc5adfdec2d07        194.45MiB       80.00KiB

btrfs's People

Contributors

simbuerg avatar

Stargazers

 avatar

Watchers

 avatar  avatar  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.