Request for new btrfs subvolume subcommand:

tree <path>
   Display a depth indented listing of subvolumes present in the
filesystem <path>.

---or---

list ... --tree ...
   ...
   -tree
      display subvolumes in a depth indented listing.

Would (I think):
* Display each top-level subvolume
* Recursively display each subvolume under its parent (using top level
ID against ID)

In the format:
/
├── a
│   ├── 1
├── b
│   ├── 1
│   └── 2
└── c
/other
└── d

The actual program "tree" does not work for this application.  It
shows all directories and files, not just the subvolumes.  It has a
"-d" option that only shows directories, which is better, but it still
shows directories that are not subvolumes.

"btrfs subvolume list /" can show 10 lines, with "tree -d" on a
freshly installed system can show over 240,000 lines.

I think it's more likely for btrfs-progs to be able to implement this,
than asking tree to make btrfs-specific code.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to