https://bugs.winehq.org/show_bug.cgi?id=43644
Bug ID: 43644 Summary: Disk free space incorrect on file systems with more than 2TB free Product: Wine Version: 2.0.2 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: kernel32 Assignee: wine-bugs@winehq.org Reporter: mikeonthecomputer@gmail.com Distribution: ---
Created attachment 59070 --> https://bugs.winehq.org/attachment.cgi?id=59070 cmd.exe from Windows 7 and Wine facing a large volume
Wine reports an absurdly inaccurate free space count on file systems with more than 2TB free on them (possibly an overflow issue?), and certain applications such as Steam believe there is insufficient space for them to update or install.
Windows 7 at least is OK with these large volumes and Steam operates correctly on them. Wine should match behavior.
Attaching screenshots of the Windows and Wine consoles. In the Wine example, I made a ZFS file system and first set the quota to 2048G (this is the maximum size reported on Unix for the FS), and then to 2049G. In this example, 2049G free made Wine report over 4EB! On an unquota'd file system, I have around 3TB free and Wine reports 17EB instead.
https://bugs.winehq.org/show_bug.cgi?id=43644
Alex Henrie alexhenrie24@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |alexhenrie24@gmail.com
--- Comment #1 from Alex Henrie alexhenrie24@gmail.com --- Created attachment 59170 --> https://bugs.winehq.org/attachment.cgi?id=59170 statvfs hack
Does this patch help?
https://bugs.winehq.org/show_bug.cgi?id=43644
--- Comment #2 from Mike Swanson mikeonthecomputer@gmail.com --- hey, sorry it took me so long to get back, but no, the patch doesn't help.
https://bugs.winehq.org/show_bug.cgi?id=43644
tokktokk fdsfgs@krutt.org changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |fdsfgs@krutt.org
https://bugs.winehq.org/show_bug.cgi?id=43644
Mike Swanson mikeonthecomputer@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |FIXED
--- Comment #3 from Mike Swanson mikeonthecomputer@gmail.com --- This bug is old and no longer valid. Wine 4.x does not have issue with >2TB free space.
https://bugs.winehq.org/show_bug.cgi?id=43644
Anastasius Focht focht@gmx.net changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|kernel32 |-unknown CC| |focht@gmx.net
--- Comment #4 from Anastasius Focht focht@gmx.net --- Hello Mike,
you most likely had a broken Linux distro at the time of the bug report = upstream.
I can't reproduce this problem with Wine 2.0.2 (version from this ticket) or even much older ones on my Fedora 28 system.
ZFS pool on 8TB disk:
--- snip --- $ zfs list NAME USED AVAIL REFER MOUNTPOINT testdata 524K 7.04T 100K /testdata testdata/fs1 100K 7.04T 100K /testdata/fs1 --- snip ---
Wine 2.0.2:
--- snip --- $ (export PATH=~/projects/wine/mainline-install-2.0.2-x86_64/bin/:$PATH && export WINEPREFIX=~/test && rm -rf $WINEPREFIX && wineboot && ln -sf /testdata/fs1/ "$WINEPREFIX/dosdevices/d:" && wine cmd.exe /c dir "d:") wine: created the configuration directory '/home/focht/test'
wine: configuration in '/home/focht/test' has been updated. Volume in drive d has no label. Volume Serial Number is 0000-0000
Directory of d:
12/9/2019 9:55 AM 0 testfile 1 file 0 bytes 0 directories 7,738,993,410,048 bytes free --- snip ---
Wine 1.4:
--- snip --- $ (export PATH=~/projects/wine/mainline-install-1.4-x86_64/bin/:$PATH && export WINEPREFIX=~/test && rm -rf $WINEPREFIX && wineboot && ln -sf /testdata/fs1/ "$WINEPREFIX/dosdevices/d:" && wine cmd.exe /c dir "d:") wine: created the configuration directory '/home/focht/test'
wine: configuration in '/home/focht/test' has been updated. Volume in drive D has no label. Volume Serial Number is 0000-0000
Directory of D:
12/9/2019 9:55 AM 0 testfile 1 file 0 bytes 0 directories 7,738,993,410,048 bytes free --- snip ---
Wine 1.6.2:
--- snip --- $ (export PATH=~/projects/wine/mainline-install-1.6.2-x86_64/bin/:$PATH && export WINEPREFIX=~/test && rm -rf $WINEPREFIX && wineboot && ln -sf /testdata/fs1/ "$WINEPREFIX/dosdevices/d:" && wine cmd.exe /c dir "d:") wine: created the configuration directory '/home/focht/test'
wine: configuration in '/home/focht/test' has been updated. Volume in drive D has no label. Volume Serial Number is 0000-0000
Directory of D:
12/9/2019 9:55 AM 0 testfile 1 file 0 bytes 0 directories 7,738,993,410,048 bytes free --- snip ---
Maybe you could fill the distro field and provide the exact distro release/kernel version if you remember these details to remedy this a bit.
--- snip --- $ uname -a Linux n550 5.0.16-100.fc28.x86_64 #1 SMP Tue May 14 18:22:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux --- snip ---
Regards
https://bugs.winehq.org/show_bug.cgi?id=43644
--- Comment #5 from Mike Swanson mikeonthecomputer@gmail.com ---
Maybe you could fill the distro field and provide the exact distro release/kernel version if you remember these details to remedy this a bit.
It was Arch Linux at the time (and remains so as I marked it solved). Distro release doesn't exist with it, at least. Kernel was likely 4.13.x at that time.
https://bugs.winehq.org/show_bug.cgi?id=43644
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #6 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 5.0-rc1.