Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Alexander_Naumov:SLE12
btrfsprogs
newdf-fix-total-size.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File newdf-fix-total-size.patch of Package btrfsprogs
Starting ba7b6e62f420f5a8832bc161ab0c7ba767f65b3d the statfs() call returns the logical size but we expect the raw size. Calculate it from the available data. Index: btrfs-progs-v3.16/cmds-fi-disk_usage.c =================================================================== --- btrfs-progs-v3.16.orig/cmds-fi-disk_usage.c +++ btrfs-progs-v3.16/cmds-fi-disk_usage.c @@ -347,7 +347,10 @@ static int print_filesystem_usage_overal goto exit; } - r_total_size = disk_size(path); + r_total_size = 0; + for (i = 0; i < devcount; i++) + r_total_size += devinfo[i].device_size; + if (r_total_size == 0) { fprintf(stderr, "ERROR: couldn't get space info on '%s' - %s\n",
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