Thread (5 messages) 5 messages, 2 authors, 2021-10-28

Re: [PATCH] btrfs: Test proper interaction between skip_balance and paused balance

From: Filipe Manana <hidden>
Date: 2021-10-28 09:23:22
Also in: fstests

On Thu, Oct 28, 2021 at 10:17 AM Nikolay Borisov [off-list ref] wrote:


On 28.10.21 г. 12:01, Filipe Manana wrote:
quoted
On Wed, Oct 27, 2021 at 10:25 PM Nikolay Borisov [off-list ref] wrote:
<snip>
quoted
quoted
+if [[ ! -e /sys/fs/btrfs/$uuid/exclusive_operation ]]; then
+       _notrun "Requires btrfs exclusive operation support"
+fi
Why is it required to have the sysfs export file for the exclusive operations?
The test doesn't use the file at all, and exclusive operations exist
for many years, unlike the sysfs file which is recent.
Because the report mentioned the following error message being printed:

ERROR: unable to start device add, another exclusive operation 'balance'
in progress

And this comes from check_running_fs_exclop which got added as part of
the sysfs interface for exclusive ops.
Ok, so check_running_fs_exclop() is a btrfs-progs function.

But even before that, and the sysfs file was added, it was not
possible to do a device add while there's stopped balance, no?
quoted
<snip>


-- 
Filipe David Manana,

“Whether you think you can, or you think you can't — you're right.”
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help