[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
reading /proc/self/mem fails
From: |
Jan Engelhardt |
Subject: |
reading /proc/self/mem fails |
Date: |
Wed, 1 Mar 2023 13:52:19 +0100 (CET) |
User-agent: |
Alpine 2.25 (LSU 592 2021-09-18) |
Greetings.
When using ddrescue to read a section of /proc/self/mem, it appears
ddrescue uses lseek(SEEK_END) in an attempt to determine the file size.
With procfs being special, that unfortunately fails.
$ strace -fe lseek ddrescue -f /proc/self/mem /dev/zero -s $[0x4040]
...
lseek(3, 0, SEEK_END) = -1 EINVAL (Invalid argument)
...
procfs is known to be... special. What is your opinion, is it worth
making this work?
- reading /proc/self/mem fails,
Jan Engelhardt <=