Hi Rumen,
auto res = handle->fs().complete_sync(handle); while (res == Vfs::File_io_service::SYNC_QUEUED) { root_dir.commit_and_wait(); }
when glancing at this code snippet, it seems like you missed calling 'complete_sync' in each iteration of the while loop. The code calls it only once. After entering the loop, the while condition can never change.
Cheers Norman