Message ID | cover.1681180159.git.wqu@suse.com (mailing list archive) |
---|---|
Headers | show |
Series | btrfs-progs: move block-group-tree out of experimental features | expand |
On Tue, Apr 11, 2023 at 10:31:04AM +0800, Qu Wenruo wrote: > People are complaining block-group-tree features are not accessible for > non-experimental builds. > > So let's make it a stable feature. > > Since we're here, it's also a good time to deprecate > -R|--runtime-features option. As a major release is near it's a good time to do such changes. Merging -R back to -O is OK. I looked again how robust the conversion to bgt is wrt to a crash in the middle. If the process is restarted it should be fine, though I'm not sure what happens when the fs would be mounted and written to with the ongoing conversion. We don't have any test coverage of the feature, at least what is possible from user space. Mount and other things need kernel 6.1 which is not in CI.
On 2023/4/14 00:20, David Sterba wrote: > On Tue, Apr 11, 2023 at 10:31:04AM +0800, Qu Wenruo wrote: >> People are complaining block-group-tree features are not accessible for >> non-experimental builds. >> >> So let's make it a stable feature. >> >> Since we're here, it's also a good time to deprecate >> -R|--runtime-features option. > > As a major release is near it's a good time to do such changes. Merging > -R back to -O is OK. I looked again how robust the conversion to bgt is > wrt to a crash in the middle. If the process is restarted it should be > fine, though I'm not sure what happens when the fs would be mounted and > written to with the ongoing conversion. It would be rejected by kernel, as I intentionally introduced a super flag which kernel is not aware of (SUPER_FLAG_CHANGING_BG_TREE). > > We don't have any test coverage of the feature, at least what is > possible from user space. Mount and other things need kernel 6.1 which > is not in CI. Yeah, that's one of the problem unfortunately. Thanks, Qu
On Fri, Apr 14, 2023 at 06:55:36AM +0800, Qu Wenruo wrote: > > > On 2023/4/14 00:20, David Sterba wrote: > > On Tue, Apr 11, 2023 at 10:31:04AM +0800, Qu Wenruo wrote: > >> People are complaining block-group-tree features are not accessible for > >> non-experimental builds. > >> > >> So let's make it a stable feature. > >> > >> Since we're here, it's also a good time to deprecate > >> -R|--runtime-features option. > > > > As a major release is near it's a good time to do such changes. Merging > > -R back to -O is OK. I looked again how robust the conversion to bgt is > > wrt to a crash in the middle. If the process is restarted it should be > > fine, though I'm not sure what happens when the fs would be mounted and > > written to with the ongoing conversion. > > It would be rejected by kernel, as I intentionally introduced a super > flag which kernel is not aware of (SUPER_FLAG_CHANGING_BG_TREE). Ah right, all the CHANGING bits are automatically rejected, we don't need to define them in kernel. > > We don't have any test coverage of the feature, at least what is > > possible from user space. Mount and other things need kernel 6.1 which > > is not in CI. > > Yeah, that's one of the problem unfortunately. I'm revisiting all tests due to the changes in CI, for example the defaults from 5.15 are not reflected in mkfs tests so I'm going to update that and will add the block-group-tree tests too.