[ENBD] another 2TB issue in 2.4.33pre
Peter T. Breuer
ptb at inv.it.uc3m.es
Wed Jun 28 11:29:49 MDT 2006
"Also sprach Florian Frank:"
> I compiled the current snapshot against Kernel 2.6.17.1, and there must be
> another 2TB issue.
>
> ENBD 2.3.32 with my patch, that I developed with Peter works fine, but with
> 2.4.33pre I get the following error:
>
> enbd-client 11252: #2511 setkernelnbd: Failed set size 1229375668224 on fd
> 4: File too large
That's an interesting one. Line 2511 in enbd-client.c is
if (size64 > 0) {
err = setdevicesize (self, size64);
if (err < 0) {
PERR ("Failed set size %Lu on fd %d: %m\n",
(unsigned long long)size64, dev);
return -EINVAL;
}
DEBUG ("client (%d) set size %Lu\n", self->i,
(unsigned long long)size64);
}
so it looks like the setdevicesize routine failed with some error number
that I don't know offhand ... EFBIG. 27. Can you switch on the DEBUG
messages in that routine (same file) by replacing them with MSG
calls?
I would assume the problem is in the kernel driver however. Can you
remind me of the precise patch and I'll compare it with the 2.4.33pre
code?
Peter
More information about the ENBD
mailing list