+-------------------------------------------------------------------
+Mon Feb 06 10:43:33 CET 2023 - aschnell@suse.com
+
+- fix use of does_subvolume_exist() (bsc#1207901)
+
-------------------------------------------------------------------
Wed Jan 25 12:25:23 CET 2023 - aschnell@suse.com
#ifdef HAVE_LIBBTRFS
for (subvolid_t subvolid : deleted_subvolids)
{
- while (!does_subvolume_exist(subvolume_dir.fd(), subvolid))
+ while (does_subvolume_exist(subvolume_dir.fd(), subvolid))
sleep(1);
}
#endif
if (ioctl(fd, BTRFS_IOC_TREE_SEARCH, &args) < 0)
throw runtime_error_with_errno("ioctl(BTRFS_IOC_TREE_SEARCH) failed", errno);
- return sk->nr_items == 0;
+ return sk->nr_items > 0;
#endif
}
}
+ if (false)
+ {
+ cout << does_subvolume_exist(fd, 280) << '\n';
+ }
+
+
if (false)
{
quota_enable(fd);