[ovs-git] Open vSwitch: socket-util: Work around Unix domain socket path name limits on Linux. (master)

dev at openvswitch.org dev at openvswitch.org
Wed Nov 10 22:06:46 UTC 2010


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Open vSwitch".

The branch, master has been updated
       via  6e170b4c7802f4f388ec63d4c1146de830d98669 (commit)
       via  e61c056cb94aeffc86cb314ea32726be9b666724 (commit)
       via  e1aff6f9f7103ee59e2501d3e6c705a685b20aeb (commit)
      from  c214278b0d0e9b574a1f505f14a47d3d8d81aea1 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 6e170b4c7802f4f388ec63d4c1146de830d98669
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=6e170b4c7802f4f388ec63d4c1146de830d98669
Author: Ben Pfaff <blp at nicira.com>
		
socket-util: Work around Unix domain socket path name limits on Linux.
		
Many Open vSwitch tests fail on Debian's automatic build machines because
the builds occur in deeply nested directories with long names.  OVS tries
to bind and connect to Unix domain sockets using absolute path names, which
in combination with long directory names means that the socket's name
exceeds the limit for Unix domain socket names (108 bytes on Linux).

This commit works around the problem on Linux by indirecting through
/proc/self/fd/<dirfd>/<basename> when names exceed the maximum that can be
used directly.

Reported-by: Hector Oron <hector.oron at gmail.com>
Reported-by: Sebastian Andrzej Siewior <sebastian at breakpoint.cc>
Reported-by: Roger Leigh <rleigh at codelibre.net>
Debian bug #602891.
Debian bug #602911.


commit e61c056cb94aeffc86cb314ea32726be9b666724
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=e61c056cb94aeffc86cb314ea32726be9b666724
Author: Ben Pfaff <blp at nicira.com>
		
socket-util: Define LINUX macro at top of file.
		
This will be used further in the following commit.


commit e1aff6f9f7103ee59e2501d3e6c705a685b20aeb
Diffs: http://openvswitch.org/cgi-bin/gitweb.cgi?p=openvswitch;a=commitdiff;h=e1aff6f9f7103ee59e2501d3e6c705a685b20aeb
Author: Ben Pfaff <blp at nicira.com>
		
util: New function base_name().
		


-----------------------------------------------------------------------

Summary of changes:
 AUTHORS                                     |    3 +
 lib/socket-util.c                           |  123 +++++++++++++++++++++++---
 lib/util.c                                  |   40 +++++++--
 lib/util.h                                  |    1 +
 tests/.gitignore                            |    3 +-
 tests/automake.mk                           |   18 +++--
 tests/dir_name.at                           |   25 ------
 tests/file_name.at                          |   26 ++++++
 tests/library.at                            |   27 ++++++
 tests/{test-dir_name.c => test-file_name.c} |   10 ++-
 tests/test-unix-socket.c                    |   64 ++++++++++++++
 tests/testsuite.at                          |    2 +-
 12 files changed, 284 insertions(+), 58 deletions(-)
 delete mode 100644 tests/dir_name.at
 create mode 100644 tests/file_name.at
 rename tests/{test-dir_name.c => test-file_name.c} (80%)
 create mode 100644 tests/test-unix-socket.c


hooks/post-receive
-- 
Open vSwitch




More information about the git mailing list