* [U-Boot] [RFC] Question about nfs_read_reply()
[not found] <CGME20170410102308epcas1p2640656b009a042f50f52ab46b60ad9e9@epcas1p2.samsung.com>
@ 2017-04-10 10:23 ` Jaehoon Chung
[not found] ` <CANr=Z=ZHqtLSeUj+exOBfmOPtw5dPgFWARFGnoTFz_b_e37Nbw@mail.gmail.com>
0 siblings, 1 reply; 3+ messages in thread
From: Jaehoon Chung @ 2017-04-10 10:23 UTC (permalink / raw)
To: u-boot
Dear Joe,
I have a question about nfs.
I don't have a knowledge for NFS..So i don't know this is right or not..
When i have tested the latest u-boot(v2017.03), nfs doesn't work fine with Odroid-xu3.
My question is a below thing...In net/nfs.c, nfs_read_reply() function is called the memcpy().
it should be copied the sizeof(rpc_pkt.u.reply))...is it really right?
diff --git a/net/nfs.c b/net/nfs.c
index 83ed0a7..09556c7 100644
--- a/net/nfs.c
+++ b/net/nfs.c
@@ -660,7 +660,8 @@ static int nfs_read_reply(uchar *pkt, unsigned len)
debug("%s\n", __func__);
memcpy(&rpc_pkt.u.data[0], pkt, sizeof(rpc_pkt.u.reply));
When i changed from "sizeof(rpc_pkt.u.reply)" to "len", it was working fine.
Maybe i'm wrong..so i asked this to you...
Best Regards,
Jaehoon Chung
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [U-Boot] [RFC] Question about nfs_read_reply()
[not found] ` <CANr=Z=ZHqtLSeUj+exOBfmOPtw5dPgFWARFGnoTFz_b_e37Nbw@mail.gmail.com>
@ 2017-05-30 20:37 ` Joe Hershberger
2017-05-31 2:09 ` Jaehoon Chung
0 siblings, 1 reply; 3+ messages in thread
From: Joe Hershberger @ 2017-05-30 20:37 UTC (permalink / raw)
To: u-boot
On Mon, Apr 10, 2017 at 6:24 PM, Joe Hershberger <joe.hershberger@ni.com> wrote:
> Hi Jaehoon,
>
> On Mon, Apr 10, 2017 at 5:23 AM, Jaehoon Chung <jh80.chung@samsung.com> wrote:
>> Dear Joe,
>>
>> I have a question about nfs.
>> I don't have a knowledge for NFS..So i don't know this is right or not..
>>
>> When i have tested the latest u-boot(v2017.03), nfs doesn't work fine with Odroid-xu3.
>
> How does it fail? Did you print out what the value of "len" is in the
> case where it was failing? How does it compare to the static size of
> the struct?
>
>> My question is a below thing...In net/nfs.c, nfs_read_reply() function is called the memcpy().
>> it should be copied the sizeof(rpc_pkt.u.reply))...is it really right?
>
> It may be copying too much, but I wouldn't expect that to be an issue.
>
> If it is not copying enough, then maybe NFS_READ_SIZE is not set
> appropriately? Or maybe there is an issue with how the server decides
> what read size to use?
>
>> diff --git a/net/nfs.c b/net/nfs.c
>> index 83ed0a7..09556c7 100644
>> --- a/net/nfs.c
>> +++ b/net/nfs.c
>> @@ -660,7 +660,8 @@ static int nfs_read_reply(uchar *pkt, unsigned len)
>>
>> debug("%s\n", __func__);
>>
>> memcpy(&rpc_pkt.u.data[0], pkt, sizeof(rpc_pkt.u.reply));
>>
>>
>> When i changed from "sizeof(rpc_pkt.u.reply)" to "len", it was working fine.
>>
>> Maybe i'm wrong..so i asked this to you...
>
> Please do some debugging with the Odroid and report values.
>
> Thanks,
> -Joe
>
>> Best Regards,
>> Jaehoon Chung
Not sure that this email ever went out... I've been having trouble
with sent emails in the last few months. :/
-Joe
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] [RFC] Question about nfs_read_reply()
2017-05-30 20:37 ` Joe Hershberger
@ 2017-05-31 2:09 ` Jaehoon Chung
0 siblings, 0 replies; 3+ messages in thread
From: Jaehoon Chung @ 2017-05-31 2:09 UTC (permalink / raw)
To: u-boot
Hi Joe,
On 05/31/2017 05:37 AM, Joe Hershberger wrote:
> On Mon, Apr 10, 2017 at 6:24 PM, Joe Hershberger <joe.hershberger@ni.com> wrote:
>> Hi Jaehoon,
>>
>> On Mon, Apr 10, 2017 at 5:23 AM, Jaehoon Chung <jh80.chung@samsung.com> wrote:
>>> Dear Joe,
>>>
>>> I have a question about nfs.
>>> I don't have a knowledge for NFS..So i don't know this is right or not..
>>>
>>> When i have tested the latest u-boot(v2017.03), nfs doesn't work fine with Odroid-xu3.
>>
>> How does it fail? Did you print out what the value of "len" is in the
>> case where it was failing? How does it compare to the static size of
>> the struct?
I will share the information when it's failed.
>>
>>> My question is a below thing...In net/nfs.c, nfs_read_reply() function is called the memcpy().
>>> it should be copied the sizeof(rpc_pkt.u.reply))...is it really right?
>>
>> It may be copying too much, but I wouldn't expect that to be an issue.
>>
>> If it is not copying enough, then maybe NFS_READ_SIZE is not set
>> appropriately? Or maybe there is an issue with how the server decides
>> what read size to use?
i didn't check in more detail..so i will debug more about what is main problem..
>>
>>> diff --git a/net/nfs.c b/net/nfs.c
>>> index 83ed0a7..09556c7 100644
>>> --- a/net/nfs.c
>>> +++ b/net/nfs.c
>>> @@ -660,7 +660,8 @@ static int nfs_read_reply(uchar *pkt, unsigned len)
>>>
>>> debug("%s\n", __func__);
>>>
>>> memcpy(&rpc_pkt.u.data[0], pkt, sizeof(rpc_pkt.u.reply));
>>>
>>>
>>> When i changed from "sizeof(rpc_pkt.u.reply)" to "len", it was working fine.
>>>
>>> Maybe i'm wrong..so i asked this to you...
>>
>> Please do some debugging with the Odroid and report values.
Sure, I will do.
>>
>> Thanks,
>> -Joe
>>
>>> Best Regards,
>>> Jaehoon Chung
>
> Not sure that this email ever went out... I've been having trouble
> with sent emails in the last few months. :/
>
> -Joe
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-05-31 2:09 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <CGME20170410102308epcas1p2640656b009a042f50f52ab46b60ad9e9@epcas1p2.samsung.com>
2017-04-10 10:23 ` [U-Boot] [RFC] Question about nfs_read_reply() Jaehoon Chung
[not found] ` <CANr=Z=ZHqtLSeUj+exOBfmOPtw5dPgFWARFGnoTFz_b_e37Nbw@mail.gmail.com>
2017-05-30 20:37 ` Joe Hershberger
2017-05-31 2:09 ` Jaehoon Chung
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.