Skip to content

Commit

Permalink
fix windows builds (#2688)
Browse files Browse the repository at this point in the history
  • Loading branch information
David Christofas authored Mar 28, 2022
1 parent 131106b commit 96279f2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions changelog/unreleased/quota-improvements.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ Also added a new return value for the remaining space which will either be quota

https://github.com/owncloud/ocis/issues/3233
https://github.com/cs3org/reva/pull/2666
https://github.com/cs3org/reva/pull/2688
4 changes: 2 additions & 2 deletions pkg/storage/fs/owncloudsql/owncloudsql_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ func (fs *owncloudsqlfs) GetQuota(ctx context.Context, ref *provider.Reference)

pathPtr, err := windows.UTF16PtrFromString(fs.toInternalPath(ctx, "/"))
if err != nil {
return 0, 0, err
return 0, 0, 0, err
}
err = windows.GetDiskFreeSpaceEx(pathPtr, &avail, &total, &free)
if err != nil {
return 0, 0, err
return 0, 0, 0, err
}

used := total - free
Expand Down
4 changes: 2 additions & 2 deletions pkg/storage/utils/localfs/localfs_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,11 @@ func (fs *localfs) GetQuota(ctx context.Context, ref *provider.Reference) (uint6

pathPtr, err := windows.UTF16PtrFromString(fs.wrap(ctx, "/"))
if err != nil {
return 0, 0, err
return 0, 0, 0, err
}
err = windows.GetDiskFreeSpaceEx(pathPtr, &avail, &total, &free)
if err != nil {
return 0, 0, err
return 0, 0, 0, err
}

used := total - free
Expand Down

0 comments on commit 96279f2

Please sign in to comment.