diff options
author | Sebastian Andrzej Siewior <bigeasy@linutronix.de> | 2008-10-21 21:35:16 +0200 |
---|---|---|
committer | Sebastian Andrzej Siewior <sebastian@breakpoint.cc> | 2010-03-07 09:58:49 +0100 |
commit | 3d06b10be52b2a5ddcd4328bc2da11c3cc25f809 (patch) | |
tree | a60a88084ecc06b9e65dc716b3cfd5bca0b26bba /purgatory/arch | |
parent | 5996651eccbffb7c195c2911f37fda2f2258e48d (diff) |
slurpfile: use lseek() on character nodes instead of fstat() for file size
fstat() is used to determine the filesize before read() and
it requires a filesystem. That means that it can not be used
on character nodes. This makes it impossible to obtains the
kernel from a char node like mtd or more likely ubi.
We can't use this in every case because files in /proc don't
support lseek(). This is required by the powerpc part to read
some device-tree entries.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Diffstat (limited to 'purgatory/arch')
0 files changed, 0 insertions, 0 deletions