https://bugs.kde.org/show_bug.cgi?id=514206
--- Comment #5 from Brayton Hackbarth <[email protected]> --- (In reply to Paul Floyd from comment #4) > I'll take a look at the code. Maybe we can use fstat to tell that the fd is > not a regular file. In case it helps, here's stat output for the file (and failed attempt to read it via stdio). It is a regular file, and even as root it can't be read. I suppose one could attempt to read and then check for errno 5, that would seem to be uncommon except for a scenario like this one. [root@fsm ~]# stat /sys/devices/pci0000:80/0000:80:01.0/0000:81:00.0/resource0 File: /sys/devices/pci0000:80/0000:80:01.0/0000:81:00.0/resource0 Size: 1048576 Blocks: 0 IO Block: 4096 regular file Device: 14h/20d Inode: 42459 Links: 1 Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2026-01-12 16:57:05.161753476 +0000 Modify: 2026-01-12 16:57:05.161753476 +0000 Change: 2026-01-12 16:57:05.161753476 +0000 Birth: - [root@fsm ~]# cat /sys/devices/pci0000:80/0000:80:01.0/0000:81:00.0/resource0 cat: '/sys/devices/pci0000:80/0000:80:01.0/0000:81:00.0/resource0': Input/output error -- You are receiving this mail because: You are watching all bug changes.
