Bug 444855 - Show inline error message, when there are non accessible files due to "Input/output error (os error 5)]"
Summary: Show inline error message, when there are non accessible files due to "Input...
Status: RESOLVED INTENTIONAL
Alias: None
Product: dolphin
Classification: Applications
Component: general (show other bugs)
Version: 21.08.2
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Dolphin Bug Assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-02 20:17 UTC by postix
Modified: 2021-11-08 21:20 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2021-11-02 20:17:46 UTC
SUMMARY

Due probably some bad sectors on my HDD, Dolphin reports a few folders as empty. However, `ls -lah` reveal, that there are files actually, though tagged with ` Input/output error (os error 5)]`.

It would be convenient if Dolphin showed an inline error on opening such a folder, saying `There are files, which cannot be accessed and displayed ( Input/output error (os error 5)])`
Comment 1 Nate Graham 2021-11-08 19:21:02 UTC
How would Dolphin know that the folder actually has content in it? If it did an `ls` on every folder you opened, the result would be huge performance regressions with certain folders. How could this be implemented without reducing performance eve everyone?
Comment 2 postix 2021-11-08 20:34:04 UTC
I am not quiet sure how Dolphin works in this regard, but I could imagine that Dolphin does something similar like `ls` already does when it tries to read files (names, properties) in a folder and probably simply disregards those, which are not accessible. 

Maybe a Dolphin expert can clarify if my idea makes sense overall or it's not achievable the way I imagine it.
Comment 3 Nate Graham 2021-11-08 20:52:36 UTC
Dolphin uses KIO, so if KIO can't find the files, the only alternative is for KIO itself to have an internal fallback to check its own work like what I indicated. However if it did that, everything would be slower because it would essentially be doing the same work twice anytime you asked it for anything.

I think you should get a new disk. :) And if you don't have plasma-disks installed, you should install it so it can warn you about this in the future! And if you to have plasma-disks installed but it didn't warn you, you should file a bug on it saying that it should!
Comment 4 postix 2021-11-08 21:11:51 UTC
(In reply to Nate Graham from comment #3)
> Dolphin uses KIO, so if KIO can't find the files

The question was, how does KIO find files. If you can get me a pointer, I'd be happy. :)

> I think you should get a new disk. :) 
That's 100% sure! Definitely, and keep doing backups!

> And if you to have plasma-disks installed but it didn't warn you, you should file a bug on it saying that it should!
I have it installed, but I don't think it applies to USB HDD drives. At least this particular disk is not shown in the SMART Status section of the Info Center.
Comment 5 postix 2021-11-08 21:20:12 UTC
Never mind my last comment about plasma5-disks: I had to disable `uas? for the usb hdd in order to make smart work: https://askubuntu.com/a/692892  :-)
... and now it says "This device appears to be working as expected" :-P