public inbox for util-linux@vger.kernel.org
 help / color / mirror / Atom feed
From: George Mitchell <george@chinilu.com>
To: util-linux@vger.kernel.org
Subject: Re: umount and findmnt commands not working with btrfs labels ...
Date: Thu, 09 May 2013 17:15:10 -0700	[thread overview]
Message-ID: <518C3C0E.7040008@chinilu.com> (raw)
In-Reply-To: <20130509195414.GU21041@codelibre.net>

On 05/09/2013 12:54 PM, Roger Leigh wrote:
> If the filesystem could expose real devices to userspace, that would 
> IMO be a big improvement. Even if it's just a virtual "proxy" for the 
> filesystem. Regards, Roger 

On 05/09/2013 12:07 PM, Karel Zak wrote:
>
> Do you mean abstract (virtual) block device (like we have for 
> device-mapper, e.g /dev/dm0)? I think it's btrfs *feature* that there 
> is not any virtual block device :)

To address both of these comments, let me say this.  btrfs provides many 
of the capabilities of traditional RAID, THAT is a FEATURE. btrfs 
provides many of the capabilities of traditional LVM.  THAT is a 
FEATURE.  IF btrfs would provide a virtual "hook" (yes Karel, an 
abstract virtual block device, exactly!) that would be UNCHANGING, THAT 
would be a FEATURE.  The fact that it does not is NOT a feature, is 
rather a shortcoming.  It is like the used car salesman telling you that 
the fact the car he is selling is missing the spare tire is a "feature" 
(imagine all the gas you will save by not having to tow it around or 
maintain it).  FEATURES are about capabilities, not just lack of 
complexity.  Lack of complexity IS a feature IF it retains capability.  
In the case of btrfs, if my mount point drive breaks in service and I 
remove it, my mount point has just changed since the previous mount 
point is no longer even part of the volume anymore.  Those are the kind 
of issues that irritate me to no end. All the partitions involved in a 
btrfs volume are, in effect, "mounted" whether or not they appear on the 
mount table, whenever the volume is mounted.  But if I use a drive 
partitioning tool, IT doesn't know they are mounted because it is 
looking in the usual places.  On the other hand if they were assigned a 
virtual mount point all this would get taken care of.  I have used 
traditional RAID both software and hardware for years now.  With 
software RAID the virtual mount point is actually /dev/mdX.  Its been 
long enough since I last used software RAID that I had forgotten the 
label format.  In the case of LVM, which I have never used, you can 
apparently make the label whatever you want it to be and can use them to 
describe subvolumes as well.  THAT WOULD BE A FEATURE!  They carry the 
format /dev/FOO/SUB1 or just /dev/FOO for example.  But they describe 
the whole volume and whether you add partitions or subtract partitions, 
the device name remains virtually immutable. IMHO, a LOT of the problems 
we are experiencing now with btrfs can in some way be traced back to 
this arcane approach (my own opinion of course) of doing things without 
reliable virtual mount points. In some ways trying to contain btrfs is 
like trying to contain a jellyfish.  But I have seen a lot of things 
come and go over the years.  I started out back in the mid 1980s doing 
system administration on PDP 1170s running programmers workbench UNIX.  
And the more things change, the more they stay the same.  But eventually 
I suppose it will work itself out.  In the mean time we will all just 
have to be creative.


  reply	other threads:[~2013-05-10  0:15 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-05-06 22:28 umount and findmnt commands not working with btrfs labels George Mitchell
2013-05-07  9:48 ` Karel Zak
2013-05-07 14:10   ` George Mitchell
2013-05-07 14:48   ` George Mitchell
2013-05-09  9:42     ` Karel Zak
2013-05-09 14:06       ` George Mitchell
2013-05-09 18:53         ` Karel Zak
2013-05-09 16:01       ` George Mitchell
2013-05-09 16:59         ` Helmut Hullen
2013-05-09 19:07         ` Karel Zak
2013-05-09 19:54         ` Roger Leigh
2013-05-10  0:15           ` George Mitchell [this message]
2013-05-10  8:28           ` Karel Zak
2013-05-07 15:10   ` George Mitchell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=518C3C0E.7040008@chinilu.com \
    --to=george@chinilu.com \
    --cc=util-linux@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox