Re: make test fails (Kernel 2.6.12.3)
Robert Scussel <[email protected]>
| Newsgroups | gmane.linux.enbd.general |
|---|---|
| Organization | OmniTI, Inc. |
| Message-ID | <[email protected]> |
I have the same code in mine:
106 fprintf(stderr, "lock on %Ld-%Ld held by another process\n",
107 (long long)lock.l_start,
108 (long long)lock.l_start + lock.l_len - 1);
Although I don't know which part of the ioctl you are talking about. I
tried to find it, but I didn't see the error you were talking about
except for maybe netserver.c line 115:
/var/tmp/nbd-2.4.32/nbd/netserver.c:115: warning: int format, different
type arg (arg 7)
/var/tmp/nbd-2.4.32/nbd/netserver.c:115: warning: int format, different
type arg (arg 7)
114 if (result < sizeof (*reply)) {
115 PERR("read only %d of %d bytes of reply\n",
116 result, sizeof(*reply));
117 goto fail;
118 }
B
Peter T. Breuer wrote:
> "Also sprach Robert Scussel:"
>
> This one ...
>
>
>>/var/tmp/nbd-2.4.32/nbd/lock.c: In function čnbd_lock_down_timeout':
>>/var/tmp/nbd-2.4.32/nbd/lock.c:108: warning: long long int format, long int arg (arg 4)
>
>
> seems to say that you do not have the same code copy as me:
>
>
> 106 fprintf(stderr, "lock on %Ld-%Ld held by another process\n",
> 107 (long long)lock.l_start,
> 108 (long long)lock.l_start + lock.l_len - 1);
>
> Both my args are explicitly cast to long long! What does your code copy
> say there?
>
> There was also some horribleness in the ioctl code args. Is the arg to
> an ioctl a char * or a long? Oh, I suppose it doesn't matter.
>
> Peter
--
Robert Scussel
1024D/BAF70959/0036 B19E 86CE 181D 0912 5FCC 92D8 1EA1 BAF7 0959