Re: NAME_MAX bumping consequences

2012-12-25 Thread Marc Espie
On Mon, Dec 24, 2012 at 09:30:53PM -0800, Philip Guenther wrote: > On Mon, Dec 24, 2012 at 4:13 PM, Vadim Zhukov wrote: > ... > > Thanks a lot, Phillip! Now I feel myself much more brave than a few hours > > ago. :) I think about tweaking NAME_MAX to 1535: this should be fine for any > > 255 UTF-8

Small statfs madness

2012-12-25 Thread Vadim Zhukov
Hello all (again). Process of looking at the *statfs() implementations discovered something fun: 0. struct mount contains "mnt_stat" pointer to struct statfs, and the later one is even called a "cache" in the sys/mount.h. 1. sys_mount() calls VFS_STATFS() at the end of work, with the following pa

Small size_t patch for fsck_ffs

2012-12-25 Thread Vadim Zhukov
A small nit in fsck_ffs/dir.c. A few lines above (size_t) cast is used, but here it's missing. -- WBR, Vadim Zhukov Index: dir.c === RCS file: /cvs/src/sbin/fsck_ffs/dir.c,v retrieving revision 1.27 diff -u -p -r1.27 dir.c ---

Re: PATCH: Disengaged mode for ThinkPad laptops

2012-12-25 Thread Vadim Zhukov
2012/12/10 Vadim Zhukov : > 2012/12/10 Christian Schulte : >> Am 12/10/12 05:00, schrieb Vadim Zhukov: >>> 10.12.2012 1:43 пользователь "Christian Schulte" >>> написал: Am 12/09/12 20:58, schrieb Vadim Zhukov: > Hello all. > > This is a bit improved versio

Re: Small size_t patch for fsck_ffs

2012-12-25 Thread Philip Guenther
On Tue, Dec 25, 2012 at 6:55 AM, Vadim Zhukov wrote: > A small nit in fsck_ffs/dir.c. A few lines above (size_t) cast is > used, but here it's missing. ... > - if (memcmp(dirp->d_name, idesc->id_name, (int)dirp->d_namlen + 1)) > + if (memcmp(dirp->d_name, idesc->id_name, (size_t)dirp->

[PATCH] Characters discarded on large writes to pty master

2012-12-25 Thread Mark Shroyer
I've encountered characters being lost while writing large buffers to a pseudoterminal master on OpenBSD 5.2. The linked program ptycheck.c exercises this behavior on 5.2 i386/amd64 (as well as 4.7 and 4.8 i386): https://gist.github.com/4377173 Briefly, the program opens a pty pair and generates

Re: Small size_t patch for fsck_ffs

2012-12-25 Thread Vadim Zhukov
26.12.2012 2:02 пользователь "Philip Guenther" написал: > > On Tue, Dec 25, 2012 at 6:55 AM, Vadim Zhukov wrote: > > A small nit in fsck_ffs/dir.c. A few lines above (size_t) cast is > > used, but here it's missing. > ... > > - if (memcmp(dirp->d_name, idesc->id_name, (in