grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: grub-devel@gnu.org
Subject: Re: booting btrfs
Date: Mon, 14 Oct 2013 01:31:33 +0200	[thread overview]
Message-ID: <525B2D55.8060502@gmail.com> (raw)
In-Reply-To: <F443F299-87EC-4862-8662-A95989134A67@colorremedies.com>

[-- Attachment #1: Type: text/plain, Size: 4077 bytes --]

On 13.10.2013 22:59, Chris Murphy wrote:
> 
> 
> On Oct 13, 2013, at 1:47 PM, Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com> wrote:
> 
>> On 13.10.2013 20:04, Chris Murphy wrote:
>>> On Sep 26, 2013, at 4:15 PM, Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com> wrote:
>>>
>>>> On 26.09.2013 22:51, Chris Murphy wrote:
>>>>>
>>>>> Open question is if on BIOS hardware, if a 1MB BIOSBoot is preferred over the 64KB Btrfs bootloader pad?
> 
> 
> What about this question?
> 
BIOS Boot partition is prefered. Currently btrfs 64K part isn't used to
whole potential. It will change.
> 
>>> 2nd question is whether additional things are needed for /boot on btrfs. Using qemu/kvm and vbox I've tested maybe 6 virtual disks using btrfs single, raid0, raid1, and raid10 configurations, and consistently GRUB can boot /boot as a subvolume. I don't know how resilient this is as the file system is used and chunks end up on different devices or if this is sufficiently abstracted that it doesn't matter and just works; including if devices are removed and added.
>>>
>> One thing that we would really need is some stability on the level of
>> concepts. It happened several times in the past and when it happened
>> again with mounting by volume id, the stance is that as long as concepts
>> change so regularly and we get no notification or consultation from
>> devs, we should keep code as-is and handle, that is handling sane cases
>> and skip the others, like subvolumes without a name.
> 
> How does one create a subvolume without a name? All subvolumes have had ID's since at least 2008, and it's been possible to mount by name or ID for quite a few years at least as well.
> 
Then this illusion was created by the /proc/mountinfo listing mounted
subdirectory as "/" when mounted by id (or something like that).
> 
> 
>>> 3rd question, related, is if it's needed and planned work for GRUB to know about subvolid such as (hd0,gpt5,sv218)
>>> so that it can directly locate a subvolume regardless if it's been moved or renamed or if the default subvolume has been changed.
>> 1) Between brackets is disk names and changing this would result in
>> utter mess. On other hand something in second part is possible. E.g.
>> (hd0,gpt5):btrfs,<parameters>/
>> is possible.
> 
> That seems reasonable.
> 
>> But I don't see why one should handle supporting renaming subvolumes
>> transparently. It would be like having to handle file renames
>> transparently.
> 
> It's more like having to handle partition name changes transparently, which of course is the current behavior. Even if I were to move the partition to different blocks on a disk,

> as long as its partition number is consistent, it's locatable, including by GRUB, regardless of partition name.
> 
moving blocks is analogous to defragging a file which is also supported.
Filesystem label works on different level, namely it's part of fs. In
msdos partition scheme partitions have no name other than a numerical ID.
> 
>> Should one reference all files in all config files in all
>> software by inode numbers, just in event it gets renamed?
> 
> I don't think the file analogy works very well for subvolumes. Subvolumes have some behaviors like folders, and some behaviors like LVs,

> and some behaviors like entirely unique file systems volumes.
I feel like subvolumes are glorified folders and would have prefered
directories becoming more powerful rather than having a completely new
concept.
On both ZFS and btrfs as far as GRUB is concerned are directories with
just slightly different structure.
Why would numbers be preferable to names? The rename may very well be
intentional in order to make other OS and/or version to boot.
> 
> It might be  possible to refer to subvolume UUID, which is also unique. I haven't tested if mount works with this.
> 
> 
> Chris Murphy
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
> 



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 291 bytes --]

  reply	other threads:[~2013-10-13 23:31 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-13 18:04 booting btrfs Chris Murphy
2013-10-13 19:47 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-13 20:59   ` Chris Murphy
2013-10-13 23:31     ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2013-10-13 23:58       ` Chris Murphy
2013-10-14  5:28         ` Andrey Borzenkov
2013-10-14 18:39           ` Chris Murphy
2013-10-14 19:29             ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-14 20:20               ` Chris Murphy
2013-10-16  2:50                 ` Andrey Borzenkov
2013-10-16  3:37                   ` Chris Murphy
2013-10-28  0:44                     ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-19 16:13                       ` Andrey Borzenkov
2013-12-19 18:14                         ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-20  3:24                           ` Chris Murphy
2013-12-20  9:46                           ` Michael Chang
2013-12-20 12:21                             ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-20 14:54                               ` Michael Chang
2013-12-20 15:10                                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-24  2:26                                   ` Michael Chang
2013-12-21  4:38                                 ` Chris Murphy
2013-12-21  7:18                                   ` Andrey Borzenkov
2013-12-23  4:45                                     ` Chris Murphy
2013-12-23  4:52                                       ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-23  5:32                                         ` Chris Murphy
2013-12-24  3:16                                           ` Chris Murphy
2013-12-24  2:29                                     ` Michael Chang
2013-12-24  2:26                                   ` Michael Chang
2013-12-24  3:43                                     ` Chris Murphy
2013-12-24  3:46                                       ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-24  3:57                                         ` Chris Murphy
2013-12-24  4:20                                       ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-24  6:12                                         ` Chris Murphy
2013-12-24  6:25                                           ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-24  7:28                                             ` Michael Chang
2013-12-24  7:46                                               ` Andrey Borzenkov
2013-12-31  4:10                                                 ` Michael Chang
2014-01-10 18:23                                         ` Andrey Borzenkov
2014-01-13  5:05                                           ` Michael Chang
2014-01-13  5:34                                             ` Andrey Borzenkov
2014-01-13  9:12                                               ` Michael Chang
2014-01-13 13:08                                                 ` Andrey Borzenkov
2014-01-14  4:16                                                   ` Michael Chang
2014-01-21  8:09                                             ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-01-21  9:08                                               ` Michael Chang
2013-12-30 10:18                                       ` Michael Chang
2013-12-30 11:28                                         ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-12-30 11:52                                           ` Andrey Borzenkov
2013-12-31  7:50                                             ` Michael Chang
2013-12-31 21:20                                               ` Chris Murphy
2014-01-02  5:17                                                 ` Michael Chang
2014-01-07 17:55                                                   ` Chris Murphy
2014-01-08 20:57                                                     ` Chris Murphy
2014-01-09 10:03                                                       ` Michael Chang
2014-01-09 19:29                                                         ` Chris Murphy
2014-01-13  5:13                                                           ` Michael Chang
2014-01-13  5:53                                                             ` Chris Murphy
2013-12-31  4:02                                           ` Michael Chang
2013-10-14 20:45               ` Chris Murphy
2013-10-14 20:50                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-15  2:33                   ` Andrey Borzenkov
2013-10-15  3:12                     ` Chris Murphy
2013-10-15 16:58                       ` Andrey Borzenkov
2013-10-15 19:47                         ` Chris Murphy
2013-10-15 20:02                           ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-15 20:27                             ` Chris Murphy
2013-10-16  2:45                           ` Andrey Borzenkov
2013-10-16  3:30                             ` Chris Murphy
2013-10-15 21:55                         ` Chris Murphy
2013-10-14 21:01                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-14 23:09                   ` Chris Murphy
2013-10-14 23:44                     ` Chris Murphy
2013-10-15  2:44                   ` Andrey Borzenkov

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=525B2D55.8060502@gmail.com \
    --to=phcoder@gmail.com \
    --cc=grub-devel@gnu.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;
as well as URLs for NNTP newsgroup(s).