fseek in Grub2
Hello,
(Grub2 internal functions questions, related with gettext)
I would like to use io/bufio.c to read the .mo file, so I would use grub_bufio_open to open, and grub_bufio_read to read.
I'm missing grub_bufio_fseek. I think that I could play with file->offset, but this would maybe break something else (that's my guess, I have had no time to look on it).
Why fseek has not been implemented? I mean, because we have not need it or because some complication?
Someone used to program io/bufio.c or something else wants to take a look?
Thanks a lot,
PS: I like Grub2 modules, so easy to create a module and start and some new commands!
Signature · 2 lines
Carles Pina i Estany GPG id: 0x17756391 http://pinux.info
Re: fseeko in Grub2
Quoted 8 lines · Carles Pina i Estany
Hello,
(Grub2 internal functions questions, related with gettext)
I would like to use
io/bufio.cto read the .mo file, so I would usegrub_bufio_opento open, andgrub_bufio_readto read.
Quoted 6 lines
I'm missing
grub_bufio_fseek. I think that I could play withfile->offset, but this would maybe break something else (that's my guess, I have had no time to look on it).Why fseek has not been implemented? I mean, because we have not need it or because some complication?
It doesn't seem to be included in kernel. If it's not dragged in to core.img for a typical setup (filesystem + partition + kernel), there are no size concerns with having it.
Quoted 2 lines
Someone used to program
io/bufio.cor something else wants to take a look?
Sorry, I'm not familiar with that part of the code, and it looks like nobody else picked it up. If you still need fseeko (btw please don't name it fseek), would you be willing to implement it?
Signature · 5 lines
Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."
Re: fseeko in Grub2
Hello,
Quoted 4 lines · Robert Millan
Quoted 2 lines · Carles Pina i Estany
I would like to use
io/bufio.cto read the .mo file, so I would usegrub_bufio_opento open, andgrub_bufio_readto read.
[...]
Quoted 6 lines
Quoted 2 lines
Someone used to program
io/bufio.cor something else wants to take a look?Sorry, I'm not familiar with that part of the code, and it looks like nobody else picked it up. If you still need fseeko (btw please don't name it fseek), would you be willing to implement it?
by the moment, I'm not using grub_bufio_read but grub_read (not using buffered I/O).
If after some time we need it (to speed up), I will reconsider moving to buffer I/O and implement grub_bufio_fseeko
Signature · 2 lines
Carles Pina i Estany GPG id: 0x17756391 http://pinux.info