Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.3:Update
btrfsprogs.24931
btrfs-progs-Correct-check_running_fs_exclop-ret...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File btrfs-progs-Correct-check_running_fs_exclop-return-v.patch of Package btrfsprogs.24931
Subject: [PATCH] btrfs-progs: Correct check_running_fs_exclop() return value References: bsc#1184481 check_running_fs_exclop() can return 1 when exclop is changed to "none" The ret is set by the return value of the select() operation. Checking the exclusive op changes just the exclop variable while ret is still set to 1. Set ret exclusively if exclop is set to BTRFS_EXCL_NONE. --- utils.c | 2 ++ 1 file changed, 2 insertions(+) --- a/utils.c +++ b/utils.c @@ -2743,6 +2743,8 @@ tv.tv_sec /= 2; ret = select(sysfs_fd + 1, NULL, NULL, &fds, &tv); exclop = get_fs_exclop(fd); + if (exclop == BTRFS_EXCLOP_NONE) + ret = 0; continue; } }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor