[Bug 22749] New: Hard link creation from a Finddupe-generated batch file fails (needs fsutil.exe implemented)
http://bugs.winehq.org/show_bug.cgi?id=22749 Summary: Hard link creation from a Finddupe-generated batch file fails (needs fsutil.exe implemented) Product: Wine Version: 1.1.44 Platform: x86-64 URL: http://www.sentex.net/~mwandel/finddupe/ OS/Version: Linux Status: UNCONFIRMED Severity: enhancement Priority: P2 Component: programs AssignedTo: wine-bugs(a)winehq.org ReportedBy: RandomAccountName(a)mail.com Finddupe has an option to generate a batch file that can be run later to create hard links for the duplicate files it find, but these batch files don't work in Wine: wine: cannot find L"C:\\windows\\system32\\fsutil.exe" The particular command it's using is this: fsutil hardlink create "C:\test6\testfile_1.gif" "C:\test6\testfile.gif" Copying over fsutil.exe from WinXP lets it work as expected (aside from the native app producing corrupted output). Fsutil is documented here: http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-... A lot of these functions probably wouldn't translate to Wine well (setting NTFS attributes, etc.) but "fsutil hardlink create" seems to do the same thing as CreateHardLink... -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=22749 A Wine user <RandomAccountName(a)mail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=22749 Vincent Povirk <madewokherd(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |madewokherd(a)gmail.com -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=22749 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 --- Comment #1 from Austin English <austinenglish(a)gmail.com> 2012-08-28 14:50:06 CDT --- Still unimplemented. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=22749 --- Comment #2 from A Wine user <RandomAccountName(a)mail.com> --- Still unimplemented as of wine-1.7.42-29-ge2e1ac2. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=22749 Ken Sharp <imwellcushtymelike(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Severity|enhancement |normal -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=22749 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |austinenglish(a)gmail.com --- Comment #3 from Austin English <austinenglish(a)gmail.com> --- Created attachment 53092 --> https://bugs.winehq.org/attachment.cgi?id=53092 stub How are you running the program? I keep getting no files specified, even when passing in a windows path.. This stub may help. Shouldn't be too hard to wrap around CreateHardLink if that's all it needs. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=22749 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=22749 --- Comment #4 from A Wine user <RandomAccountName(a)mail.com> --- Sorry I've been MIA... (In reply to Austin English from comment #3)
How are you running the program? I keep getting no files specified, even when passing in a windows path..
finddupe -hardlink -bat test.bat Z:/media/tmpfs/test Replace Z:/media/tmpfs/test with a directory containing some duplicate files, and the program will generate test.bat. This batch file is supposed to delete the duplicates and replace them with hard links, but only the deletion works in Wine. (This didn't change with the stub added) -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=22749 Sebastian Lackner <sebastian(a)fds-team.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Staged patchset| |https://github.com/wine-com | |pholio/wine-staging/tree/ma | |ster/patches/fsutil-Stub_Pr | |ogram CC| |dmitry(a)baikal.ru, | |erich.e.hoover(a)wine-staging | |.com, michael(a)fds-team.de, | |sebastian(a)fds-team.de Status|NEW |STAGED -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=22749 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #53092|0 |1 is obsolete| | --- Comment #5 from Austin English <austinenglish(a)gmail.com> --- Comment on attachment 53092 --> https://bugs.winehq.org/attachment.cgi?id=53092 stub Stub was committed: https://source.winehq.org/git/wine.git/commitdiff/db77a0dba67a3a808b6dda1448... but we should probably wait for Michael's improvements to land upstream before marking this fixed. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=22749 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Hard link creation from a |Hard link creation from a |Finddupe-generated batch |Finddupe-generated batch |file fails (needs |file fails ('fsutil.exe' |fsutil.exe implemented) |needs to support 'hardlink | |create' command) CC| |focht(a)gmx.net Staged patchset|https://github.com/wine-com |https://github.com/wine-sta |pholio/wine-staging/tree/ma |ging/wine-staging/tree/mast |ster/patches/fsutil-Stub_Pr |er/patches/fsutil-Stub_Prog |ogram |ram --- Comment #6 from Anastasius Focht <focht(a)gmx.net> --- Hello folks, confirming, still present. --- snip --- $ wine ./finddupe.exe -hardlink -bat test.bat z:/home/focht/.wine/drive_c ... Duplicate: 'z:\home\focht\.wine\drive_c\windows\system32\gdiplus.dll' With: 'z:\home\focht\.wine\drive_c\windows\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.0.6000.16386_none_deadbeef\gdiplus.dll' Duplicate: 'z:\home\focht\.wine\drive_c\windows\system32\gdiplus.dll' With: 'z:\home\focht\.wine\drive_c\windows\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.23038_none_deadbeef\gdiplus.dll' Files: 213120 kBytes in 951 files Dupes: 1584 kBytes in 497 files --- snip --- --- snip --- $ cat test.bat ... del "z:\home\focht\.wine\drive_c\windows\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.23038_none_deadbeef\gdiplus.dll" fsutil hardlink create "z:\home\focht\.wine\drive_c\windows\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.23038_none_deadbeef\gdiplus.dll" "z:\home\focht\.wine\drive_c\windows\system32\gdiplus.dll" --- snip --- --- snip --- $ wine fsutil hardlink create "z:\home\focht\.wine\drive_c\windows\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.23038_none_deadbeef\gdiplus.dll" "z:\home\focht\.wine\drive_c\windows\system32\gdiplus.dll" 0009:fixme:fsutil:wmain stub: L"C:\\windows\\system32\\fsutil.exe" L"hardlink" L"create" L"z:\\home\\focht\\.wine\\drive_c\\windows\\winsxs\\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.23038_none_deadbeef\\gdiplus.dll" L"z:\\home\\focht\\.wine\\drive_c\\windows\\system32\\gdiplus.dll" --- snip --- --- snip --- $ stat .wine/drive_c/windows/winsxs/x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.23038_none_deadbeef/gdiplus.dll File: ‘.wine/drive_c/windows/winsxs/x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7601.23038_none_deadbeef/gdiplus.dll’ Size: 2364 Blocks: 8 IO Block: 4096 regular file Device: 31h/49d Inode: 1644304 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1000/ focht) Gid: ( 1000/ focht) Context: unconfined_u:object_r:user_home_t:s0 Access: 2018-03-04 20:05:37.955353215 +0100 Modify: 2018-03-04 20:02:56.450882224 +0100 Change: 2018-03-04 20:02:56.450882224 +0100 Birth: - $ stat .wine/drive_c/windows/system32/gdiplus.dll File: ‘.wine/drive_c/windows/system32/gdiplus.dll’ Size: 2364 Blocks: 8 IO Block: 4096 regular file Device: 31h/49d Inode: 1643720 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 1000/ focht) Gid: ( 1000/ focht) Context: unconfined_u:object_r:user_home_t:s0 Access: 2018-03-04 20:05:37.754352592 +0100 Modify: 2018-03-04 20:02:56.449882221 +0100 Change: 2018-03-04 20:02:56.449882221 +0100 Birth: - --- snip --- $ sha1sum finddupe.exe a3a5fee72b0efe2f85ec9e41ff5683e0e8c09dc8 finddupe.exe $ du -sh finddupe.exe 52K finddupe.exe $ wine --version wine-3.3 Regards -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=22749 Gijs Vermeulen <gijsvrm(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |FIXED Status|STAGED |RESOLVED Fixed by SHA1| |55227375e9d6b0d83fd25c1e1ca | |bdb7536d82296 --- Comment #7 from Gijs Vermeulen <gijsvrm(a)gmail.com> --- The staged patchset was upstreamed as <https://source.winehq.org/git/wine.git/commit/55227375e9d6b0d83fd25c1e1cabdb7536d82296>. Marking FIXED. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=22749 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #8 from Alexandre Julliard <julliard(a)winehq.org> --- Closing bugs fixed in 5.18. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=22749 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |5.0.x -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=22749 Anastasius Focht <focht(a)gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- URL|http://www.sentex.net/~mwan |https://web.archive.org/web |del/finddupe/ |/20101127142356/http://sent | |ex.ca/~mwandel/finddupe/fin | |ddupe.exe -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=22749 Michael Stefaniuc <mstefani(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|5.0.x |--- --- Comment #9 from Michael Stefaniuc <mstefani(a)winehq.org> --- Removing the 5.0.x milestone from bug fixes included in 5.0.4. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (2)
-
wine-bugs@winehq.org -
WineHQ Bugzilla