Commit Graph

6 Commits (master)

Author SHA1 Message Date
Theodore Ts'o d730094243 debian: update libcomerr2.symbols
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2011-10-05 03:04:41 -04:00
Theodore Ts'o 7b6f59204e Update release notes, version string, etc. for e2fsprogs 1.41.11 release
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2010-03-15 00:57:42 -04:00
Theodore Ts'o d7f45af802 libcom_err: Use sem_post/sem_init to prevent race conditions
SuSE has been carrying a patch for a long time to prevent a largely
theoretical race condition if a multi-threaded application adds and
removes error tables in multiple threads.  Unfortunately SuSE's
approach breaks compatibility by forcing applications to link and
compile with the -pthread option; using pthread mutexes has
historically been problematic.

This commit fixes things in a more portable way by using
sem_post/sem_wait instead, which is an older interface that doesn't
require the pthreads library.  Linux happens to implement
sem_post/sem_init using futexes, and -lrt ends up pulling in
-lpthread, but the advantage of using POSIX semaphores is that
applications don't have to be built using -pthread, unlike the use of
pthread mutexes.

The add_error_table() and remove_error_table() interfaces are the
preferred interfaces and locking protection have been added to only
these interfaces.  I have not added locking protection to the
generated initialize_xxx_error_table and initialize_xxx_error_table_r
interfaces, to avoid adding symbol dependencies that would cause a
library to fail to work when linking against older com_err libraries
that do not export et_list_lock() and et_list_unlock().  Threaded
applications shouldn't be using these interfaces in any case.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-09-12 10:15:26 -04:00
Theodore Ts'o 00ec31b446 Add more historical information into the debian/*.symbols files
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-09-05 11:10:47 -04:00
Theodore Ts'o 03d28ded13 debian: Change symbols files to only use uptream versions numbers
As suggested by lintian

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-08-28 09:43:18 -04:00
Theodore Ts'o 649bd289d0 debian: Add dpkg-gensymbols support to track ABI changes to the libraries
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2008-08-25 00:00:35 -04:00