Skip to content
Commit 6832817f authored by Harald Sitter's avatar Harald Sitter 🐧
Browse files

smb: fix free space calculation

Summary:
- collapse statvfs call, there's no purpose in manually opening the file
  when libsmbc has a convenience wrapper that does exactly what we need
  with less code on our end
- blockSize is now calculated as per the conditional branches in
  smbc_stat.c
- free space calculation is now backwards compatible with slightly busted
  legacy versions of libsmbc not setting f_bavail

FIXED-IN: 19.12.3
BUG: 298801

Test Plan: free space calculation now works with windows10, ubuntu18.04, ubuntu19.10

Reviewers: ngraham, meven

Reviewed By: ngraham, meven

Subscribers: meven, kde-frameworks-devel, kfm-devel

Tags: #dolphin, #frameworks

Differential Revision: https://phabricator.kde.org/D27294
parent e2eadb75
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment