Bug 464009 - Deleting multiple big files though SMB causing errors
Summary: Deleting multiple big files though SMB causing errors
Status: RESOLVED DUPLICATE of bug 396630
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: Samba (show other bugs)
Version: 22.12.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-08 16:45 UTC by gudvinr+kde
Modified: 2023-01-12 10:17 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gudvinr+kde 2023-01-08 16:45:36 UTC
SUMMARY

When I remove a lot of big files via SMB (in dolphin), I get "Device or resource busy" error.

If it's small files or when I remove just single file it doesn't seem to happen.

STEPS TO REPRODUCE
1. Connect to SMB share (not CIFS mounted FS)
2. Go to folder with multiple big files (e.g. movies, series, etc)
3. Select multiple files
4. Delete

OBSERVED RESULT
Device or resource busy error

EXPECTED RESULT
No errors, files are deleted

SOFTWARE/OS VERSIONS
Operating System: Arch Linux
KDE Plasma Version: 5.26.5
KDE Frameworks Version: 5.101.0
Qt Version: 5.15.8
Kernel Version: 6.1.3-zen1-1-zen (64-bit)
Graphics Platform: Wayland

ADDITIONAL INFORMATION

I don't know if it's KIO issue but it doesn't seem to be dolphin or generic filesystem bug so I put it here.
Comment 1 Harald Sitter 2023-01-11 12:41:50 UTC
https://community.kde.org/Guidelines_and_HOWTOs/Debugging/Debugging_IOSlaves/Debugging_kio_smb#Reporting_Bugs

Sound like an upstream samba bug though TBH.
Comment 2 Harald Sitter 2023-01-11 12:45:48 UTC
I also cannot reproduce this with samba 4.15.9
Comment 3 Harald Sitter 2023-01-11 12:50:57 UTC
Oh oh oh, it could also be a variant of this bug https://bugs.kde.org/show_bug.cgi?id=396630

In case your server is samba you can run smbstatus on the server side to check out the locked files, are the failing files maybe locked there?
Comment 4 gudvinr+kde 2023-01-11 13:08:54 UTC
I use samba 4.17.4 on client side and 4.13.13-Debian on server side.

Yes, smbstatus says there are locked files that I am trying to delete.
Comment 5 Harald Sitter 2023-01-11 16:08:50 UTC
Alright, pretty sure it's a duplicate then. Also explains why big files are more affected since they may take longer to generate previews for.

*** This bug has been marked as a duplicate of bug 396630 ***
Comment 6 gudvinr+kde 2023-01-12 10:12:51 UTC
Thumbnails and SMB don't work together very well indeed. I found another issue (bug 464009) a while ago.
Comment 7 gudvinr+kde 2023-01-12 10:17:26 UTC
I meant bug 457592, wrong number copied from clipboard