From: Peter Korsgaard <jacmet@sunsite.dk>
To: dedekind@infradead.org
Cc: Sebastian Andrzej Siewior <bigeasy@linutronix.de>,
linux-mtd@lists.infradead.org
Subject: Re: [RFC] ubi: tmp hack for lstat
Date: Mon, 20 Oct 2008 14:57:14 +0200 [thread overview]
Message-ID: <87bpxfifv9.fsf@macbook.be.48ers.dk> (raw)
In-Reply-To: <1224494471.4466.90.camel@sauron> (Artem Bityutskiy's message of "Mon\, 20 Oct 2008 12\:21\:11 +0300")
>>>>> "Artem" == Artem Bityutskiy <dedekind@infradead.org> writes:
Hi,
Artem> On Mon, 2008-10-20 at 11:11 +0200, Sebastian Andrzej Siewior wrote:
>> I'm actually not sure what the expected behavior is. stat() returns
>> information about a file and ubi isn't a regular file it is a character
>> node. So it would be probably better to leave everything as it and
>> change userspace instead.
Artem> In my understanding, stat() should return how many bytes of
Artem> data inode contains. Stat on a character device should return
Artem> amount of bytes the character device inode contain. In ext3
Artem> major/minor are stored as meta-data, so it returns 0.
Exactly. The normal way to know the size of these things is to open
them and do the lseek(fd, 0, SEEK_END) thing.
--
Bye, Peter Korsgaard
prev parent reply other threads:[~2008-10-20 12:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-19 13:21 [RFC] ubi: tmp hack for lstat Sebastian Andrzej Siewior
2008-10-20 5:13 ` Artem Bityutskiy
2008-10-20 9:11 ` Sebastian Andrzej Siewior
2008-10-20 9:21 ` Artem Bityutskiy
2008-10-20 12:57 ` Peter Korsgaard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bpxfifv9.fsf@macbook.be.48ers.dk \
--to=jacmet@sunsite.dk \
--cc=bigeasy@linutronix.de \
--cc=dedekind@infradead.org \
--cc=linux-mtd@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.