Re: [ovs-dev] [PATCH] socket-util: Add symlink based workaround for long pathnames.

2013-10-17 Thread Ben Pfaff
On Fri, Oct 18, 2013 at 11:31:37AM +0900, YAMAMOTO Takashi wrote: > > +/* Attempts to shorten 'name' by creating a symlink for the directory part > > of > > + * the name and indirecting through /. This works on > > + * systems that support symlinks, as long as isn't too long. > > + * > > + * On

Re: [ovs-dev] [PATCH] socket-util: Add symlink based workaround for long pathnames.

2013-10-17 Thread YAMAMOTO Takashi
> +/* Attempts to shorten 'name' by creating a symlink for the directory part of > + * the name and indirecting through /. This works on > + * systems that support symlinks, as long as isn't too long. > + * > + * On success, returns 0 and stores the short name in 'short_name' and the > + * symbol

[ovs-dev] [PATCH] socket-util: Add symlink based workaround for long pathnames.

2013-10-17 Thread Ben Pfaff
From: YAMAMOTO Takashi The existing /proc workaround only works on Linux. Symlinks are more widely available. Signed-off-by: YAMAMOTO Takashi Co-authored-by: Ben Pfaff Signed-off-by: Ben Pfaff --- lib/socket-util.c | 213 +++-- python/ovs/soc