* why raw devices don't seek above 4GB (sometimes)
@ 2001-04-17 18:52 k.lichtenwalder
2001-04-17 20:01 ` Alan Cox
0 siblings, 1 reply; 3+ messages in thread
From: k.lichtenwalder @ 2001-04-17 18:52 UTC (permalink / raw)
To: xine discussion list, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1061 bytes --]
ok,
I found my problem. As previously said, I'm on reiser. Which (obviously)
has a file size limit of 4GB set in the superblock. Llseek only allows
seek offsets which are smaller than the allowed file size. What happens
is:
I set up a raw device: raw /dev/raw/raw1 /dev/hdd
with /dev/hdd being my DVD drive.
Xine then does repeated llseeks on /dev/raw/raw1 until it gets above 4G.
Because /dev/raw/raw1 and the associated /dev/hdd both are on reiserfs,
and reiserfs has a 4G limit, llseek assumes the same for the associated
raw devices and returns from the llseek with EINVAL. Bang.
I don't know whether there's an easy solution.
Please contact me if you nee further details/tests
Klaus
--
------------------------------------------------------------------------
Klaus Lichtenwalder, Dipl. Inform., http://www.webforum.de/Klaus/
Fax +49-(0)89-91072699 Lichtenwalder@ACM.org
NIC: KL2100, KL76-RIPE K.Lichtenwalder@Computer.org
PGP Key fingerprint = 2658 EA97 E1A1 2680 5ECA 0036 80F5 F250 3CF8
C2C7
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 2036 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: why raw devices don't seek above 4GB (sometimes)
2001-04-17 18:52 why raw devices don't seek above 4GB (sometimes) k.lichtenwalder
@ 2001-04-17 20:01 ` Alan Cox
2001-04-18 4:52 ` [xine-user] " k.lichtenwalder
0 siblings, 1 reply; 3+ messages in thread
From: Alan Cox @ 2001-04-17 20:01 UTC (permalink / raw)
To: k.lichtenwalder; +Cc: xine discussion list, linux-kernel
> I set up a raw device: raw /dev/raw/raw1 /dev/hdd
> with /dev/hdd being my DVD drive.
> Xine then does repeated llseeks on /dev/raw/raw1 until it gets above 4G.
> Because /dev/raw/raw1 and the associated /dev/hdd both are on reiserfs,
> and reiserfs has a 4G limit, llseek assumes the same for the associated
> raw devices and returns from the llseek with EINVAL. Bang.
> I don't know whether there's an easy solution.
That sounds like /dev/raw/.. should have its own lseek method.
Alan
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [xine-user] Re: why raw devices don't seek above 4GB (sometimes)
2001-04-17 20:01 ` Alan Cox
@ 2001-04-18 4:52 ` k.lichtenwalder
0 siblings, 0 replies; 3+ messages in thread
From: k.lichtenwalder @ 2001-04-18 4:52 UTC (permalink / raw)
Cc: xine discussion list, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1144 bytes --]
Alan Cox wrote:
>
> > I set up a raw device: raw /dev/raw/raw1 /dev/hdd
> > with /dev/hdd being my DVD drive.
> > Xine then does repeated llseeks on /dev/raw/raw1 until it gets above 4G.
> > Because /dev/raw/raw1 and the associated /dev/hdd both are on reiserfs,
> > and reiserfs has a 4G limit, llseek assumes the same for the associated
> > raw devices and returns from the llseek with EINVAL. Bang.
> > I don't know whether there's an easy solution.
>
> That sounds like /dev/raw/.. should have its own lseek method.
Yeah, while going to bed I thought that this can only be cured by doing
an raw-device specific lseek method, as lseek has no other means to find
out which device this really is. I guess I'll give it a try but I don't
know whether I'm up to it.
Klaus
--
------------------------------------------------------------------------
Klaus Lichtenwalder, Dipl. Inform., http://www.webforum.de/Klaus/
Fax +49-(0)89-91072699 Lichtenwalder@ACM.org
NIC: KL2100, KL76-RIPE K.Lichtenwalder@Computer.org
PGP Key fingerprint = 2658 EA97 E1A1 2680 5ECA 0036 80F5 F250 3CF8
C2C7
[-- Attachment #2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 2036 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-04-18 4:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-04-17 18:52 why raw devices don't seek above 4GB (sometimes) k.lichtenwalder
2001-04-17 20:01 ` Alan Cox
2001-04-18 4:52 ` [xine-user] " k.lichtenwalder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox