Bug 150579 - KDiskFree does not recognize BTRFS Subvolumes.
Summary: KDiskFree does not recognize BTRFS Subvolumes.
Status: REPORTED
Alias: None
Product: kdf
Classification: Applications
Component: general (show other bugs)
Version: 0.5
Platform: Gentoo Packages Linux
: NOR wishlist
Target Milestone: ---
Assignee: Unassigned bugs mailing-list
URL:
Keywords:
: 384430 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-10-07 21:05 UTC by Jon
Modified: 2017-09-27 13:19 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
My KDF Setup. (83.99 KB, image/png)
2007-10-07 21:09 UTC, Jon
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jon 2007-10-07 21:05:49 UTC
Version:           0.5 (using KDE KDE 3.5.7)
Installed from:    Gentoo Packages
Compiler:          gcc v4.1.2 
OS:                Linux

BTRFS is a new advanced filesystem that allows for subvolumes to be mounted to other mount points. I will use my setup as an example and even include a screenshot.

I have /dev/hda6 formatted as btrfs. Then I created three subvolumes: repos, portage_tmp, and ccache. Respectively they are mounted to /var/repos, /var/tmp/portage, and /var/tmp/ccache. You can think of subvolumes as like a completely different partition with it's own separate filesystem. The mount command for them are:
mount -t btrfs -o subvol=foo /dev/whatever /mount/point
So, I would mount one of my partitions as:
mount -t btrfs -o subvol=repos /dev/hda6 /var/repos

In fstab I have:
/dev/hda6   /var/repos   btrfs   defaults,noatime,subvol=repos 0 2
mstab shows:
/dev/hda6 /var/repos btrfs rw,noatime,subvol=repos 0 0

So, adding subvol support can be a less troubling than the other bug I posted in. :P

Basically, what I am wishing for is something like this in KDiskView:
/dev/hda6 (subvol repos) .... so on normally.
Just something to signify what subvol name I am looking at. Maybe even "btrfs subvol" in "Type", but that isn't needed. I think this would mean parsing fstab/mtab for the subvol line. I don't know if BTRFS is the only FS that has subvols, but if there are others, I think they would use this same syntax, so it would support more than just BTRFS. :)

The way subvols work, they share the same partition, unless they are given a quota. I have not set up subvol quotas yet, but I think KDF would support that automatically, because it's stored in the subvol part explicitly how big the subvol can be, like a real partition stating how big it can be.

For more info on BTRFS, you can go here:
http://oss.oracle.com/projects/btrfs/

I hope this was a clear bug report with enough information.
Comment 1 Jon 2007-10-07 21:09:26 UTC
Created attachment 21773 [details]
My KDF Setup.

This is what my KDF looks like, as you can tell there is no easy way to tell
what the name of the subvol is, because in my list in the main post, I have one
named "portage_tmp" and that is not visible.

This is the same image that I posted in this bug, that I hope gets some
attention too, because as you can tell by the screenshot, I have a huge list.
:P
https://bugs.kde.org/show_bug.cgi?id=118123

Thanks. :)
Comment 2 Christoph Feck 2017-09-27 13:19:17 UTC
*** Bug 384430 has been marked as a duplicate of this bug. ***