Mailinglist Archive: yast-devel (18 mails)
< Previous | Next > |
Re: [yast-devel] btrfs level 0 qgroups
- From: Arvin Schnell <aschnell@xxxxxxxx>
- Date: Thu, 29 Oct 2020 12:17:26 +0000
- Message-id: <20201029121726.GA4524@suse.com>
On Wed, Oct 28, 2020 at 09:52:07AM +0000, Arvin Schnell wrote:
Unfortunately I found a situation where ignoring level 0 qgroups
without a corresponding subvolume during probing leads to
problems:
The level 0 qgroup can be assigned to a higher level qgroup. If
that higher level qgroup should be removed, all relations must be
removed in advance. Without having the level 0 qgroup in the
devicegraph also the relation is not known and thus the relation
cannot be removed. And 'btrfs qgroup destroy' does not have a
--force option.
So I think all qgroups must be probed. But modifying level 0
qgroups without a corresponding subvolume is not supported.
ciao Arvin
--
Arvin Schnell, <aschnell@xxxxxxxx>
Senior Software Engineer, Research & Development
SUSE Software Solutions Germany GmbH
Maxfeldstraße 5
90409 Nürnberg
Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx
So to avoid such problems with libstorage-ng and YaST I propose
to 1) disallow creating level 0 qgroups without an corresponding
subvolume and 2) ignore level 0 qgroups without a corresponding
subvolume during probing.
Unfortunately I found a situation where ignoring level 0 qgroups
without a corresponding subvolume during probing leads to
problems:
The level 0 qgroup can be assigned to a higher level qgroup. If
that higher level qgroup should be removed, all relations must be
removed in advance. Without having the level 0 qgroup in the
devicegraph also the relation is not known and thus the relation
cannot be removed. And 'btrfs qgroup destroy' does not have a
--force option.
So I think all qgroups must be probed. But modifying level 0
qgroups without a corresponding subvolume is not supported.
ciao Arvin
--
Arvin Schnell, <aschnell@xxxxxxxx>
Senior Software Engineer, Research & Development
SUSE Software Solutions Germany GmbH
Maxfeldstraße 5
90409 Nürnberg
Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Felix Imendörffer
--
To unsubscribe, e-mail: yast-devel+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: yast-devel+owner@xxxxxxxxxxxx
< Previous | Next > |