[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
- [Qemu-devel] [PATCH v7 03/10] linux-user: Add support for syncfs() syscall, (continued)
- [Qemu-devel] [PATCH v7 03/10] linux-user: Add support for syncfs() syscall, Aleksandar Markovic, 2016/09/22
- [Qemu-devel] [PATCH v7 04/10] linux-user: Add support for sysfs() syscall, Aleksandar Markovic, 2016/09/22
- [Qemu-devel] [PATCH v7 05/10] linux-user: Add support for ustat() syscall, Aleksandar Markovic, 2016/09/22
- [Qemu-devel] [PATCH v7 06/10] linux-user: Fix mq_open() syscall support, Aleksandar Markovic, 2016/09/22
- [Qemu-devel] [PATCH v7 07/10] linux-user: Fix msgrcv() and msgsnd() syscalls support, Aleksandar Markovic, 2016/09/22
- [Qemu-devel] [PATCH v7 08/10] linux-user: Fix socketcall() syscall support, Aleksandar Markovic, 2016/09/22
- [Qemu-devel] [PATCH v7 09/10] linux-user: Fix syslog() syscall support, Aleksandar Markovic, 2016/09/22
- [Qemu-devel] [PATCH v7 10/10] linux-user: Remove a duplicate item from strace.list, Aleksandar Markovic, 2016/09/22
- Re: [Qemu-devel] [PATCH v7 00/10] linux-user: Fix assorted Qemu user mode issues, Laurent Vivier, 2016/09/22
- Re: [Qemu-devel] [PATCH v7 00/10] linux-user: Fix assorted Qemu user mode issues, Riku Voipio, 2016/09/24