Summary: | Deleting a symlink is impossible if the disk of the target is close to full | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | sasori.nami |
Component: | general | Assignee: | KIO Bugs <kio-bugs-null> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | kdelibs-bugs, kfm-devel, meven29 |
Priority: | NOR | ||
Version: | 6.5.0 | ||
Target Milestone: | --- | ||
Platform: | Manjaro | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
sasori.nami
2024-01-20 22:55:18 UTC
The issue is the trash used is not on the correct drive. Trash are supposed to be per-drive. As a workaround, you can directly delete it using SHIFT+DELETE. Could detail you mount configuration, for instance with the output of `mount` command? Are you file-system using btrfs? (In reply to Méven Car from comment #1) > The issue is the trash used is not on the correct drive. > Trash are supposed to be per-drive. > > As a workaround, you can directly delete it using SHIFT+DELETE. > > Could detail you mount configuration, for instance with the output of > `mount` command? > Are you file-system using btrfs? No, this is definitely not a trash issue. Both drives are ext4 with their own ".Trash" folder that woks flawlessly otherwise. Have you tried reproducing on your end ? It's pretty easy to reproduce (see steps above). I've just done it again. Different drives, same fs type (ext4), and again both drives have a working ".Trash" with correct permissions (if I go to either drive and trash a file from that drive, the file goes in the correct drive's trash). Thanks for the workaround, though. Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! It seems the size calculation takes into account the symlink destination size when it should'nt. It is around this line, we don't check if the file is a symlink. https://invent.kde.org/frameworks/kio/-/blob/master/src/core/copyjob.cpp#L834 But most importantly we should not resolve the symlink when stat() is called() when moving the file. (copy should still copy symlink destinations). https://invent.kde.org/frameworks/kio/-/blob/master/src/core/copyjob.cpp#L1051 This bug could also affect moving such symlink anywhere on a drive that has less space than the file it points to' size in some (rare) circumstances, since `CopyJobPrivate::startRenameJob` does not check file size. I wonder if we handle properly moving symlinks to trash:/ that would need a unit-test. |