qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v7 00/10] linux-user: Fix assorted Qemu user mod


From: Laurent Vivier
Subject: Re: [Qemu-devel] [PATCH v7 00/10] linux-user: Fix assorted Qemu user mode issues
Date: Fri, 23 Sep 2016 11:03:51 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.3.0


Le 23/09/2016 à 10:43, Aleksandar Markovic a écrit :
>     > - changed PATH_MAX to 128 in sysfs() patch (last remaining item
>     > that was supposed to be in the previous version)/
> 
>     At first glance of the patch, you didn't change the good PATH_MAX...
> 
>     Laurent/
> 
> It slipped through the cracks. Sorry. :( My bad. But all other changes
> are in. Rebase is also good, this series sits *after* 26-patch
> linux-user change. Speaking about PATH_MAX, I intended to replace it
> with hardcoded 128. However, another possibility is replacing it with
> NAME_MAX (255). Or to leave PATH_MAX (4096)? Or something else
> altogether? What do you think? Thanks, Aleksandar

I've looked at the kernel code and there is no defined value for this
length (this is a pointer to a string), but it seems the length of the
longest string is 14 [1]. So 4096 seems really overkill.

Laurent

[1] grep -rh -A3 "struct file_system_type " . |grep "\.name" |sed -n
's/[^"]*"\([^"]*\)".*/\1/p'|while read name; do echo $name|wc -c;
done|sort -n|tail -1



reply via email to

[Prev in Thread] Current Thread [Next in Thread]