1. 27 Jul, 2009 1 commit
    • Eric Sandeen's avatar
      e4defrag: remove a lot of cruft · 4f1d0e86
      Eric Sandeen authored
      
      e4defrag.c had a lot of stuff copied into it from other
      places, redefinitions of existing interfaces, etc.
      
      We should be able to remove most of this, as the tool only
      works on recent kernels anyway, we should just pick up
      definitions from recent kernel headers whenever possible.
      
      I've left the local definitions of fallocate, fadvise
      (changed to posix_fadvise) and sync_file_range, and
      wrapped them in #ifdef configure-time tests - though
      really it seems like only fallocate should be necessary
      by now, and perhaps the others can be dropped.
      
      We still need some Makefile work so that it won't try to
      build e4defrag if the right pieces aren't there (and
      if the local definitions won't work...)
      Signed-off-by: default avatarEric Sandeen <sandeen@redhat.com>
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      4f1d0e86
  2. 18 Jul, 2009 1 commit
  3. 02 Jul, 2009 2 commits
    • Theodore Ts'o's avatar
      Enhance build system so that "make V=1" works like the Linux Kernel · bcb915b0
      Theodore Ts'o authored
      
      If gmake is available, the developer can use "make V=1" instead of
      using a configure-time switch, --enable-verbose-makecmds, to see all
      of the commands executed by the Makefile.
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      bcb915b0
    • Theodore Ts'o's avatar
      Add support for configure --enable-verbose-makecmds · c13351f6
      Theodore Ts'o authored
      
      Some people don't want to see the concise "kernel-style" make output.
      This configure option allows build engines that want to see the full
      set of commands executed by the makefile to get what they want.  Most
      people will find this more distracting than useful, unless they need
      to debug the Makefiles.
      
      (It is not necessary to rerun configure to enable this verbose make
      output temprarily; if a developer wants to do a quick debug of a
      directory's makefile, he or she can simply edit the definition of the
      $(E) and $(Q) variables in the Makefile; instructions can be found in
      the MCONFIG file which is included in at the beginning of every
      Makefile.)
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      c13351f6
  4. 29 Jun, 2009 1 commit
  5. 22 Apr, 2009 1 commit
  6. 15 Apr, 2009 1 commit
  7. 12 Sep, 2008 1 commit
    • Theodore Ts'o's avatar
      libcom_err: Use sem_post/sem_init to prevent race conditions · d7f45af8
      Theodore Ts'o authored
      
      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: default avatar"Theodore Ts'o" <tytso@mit.edu>
      d7f45af8
  8. 03 Sep, 2008 1 commit
    • Theodore Ts'o's avatar
      Improve ELF shared library handling · 55da9876
      Theodore Ts'o authored
      
      Pass in -rpath-link option to the linker so that blkid will build
      correctly on systems that don't have libcom_err.so.2 installed.
      
      Fix debugfs to only try to link with -ldl when building without shared
      libraries; with ELF shared libraries, the library which requires -ldl
      (libss.so) can required the library dependency itself.
      
      Fix how we build tune2fs.static so that we use @LDFLAG_STATIC@, via
      $(LDFLAGS_STATIC), instead of hard-coding the use of -static.
      
      Addresses-Sourceforge-Bug: #2088537
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      55da9876
  9. 01 Sep, 2008 1 commit
  10. 27 Aug, 2008 1 commit
  11. 22 Aug, 2008 3 commits
  12. 13 Jul, 2008 2 commits
  13. 10 Jul, 2008 1 commit
  14. 07 Jul, 2008 1 commit
  15. 07 Jun, 2008 1 commit
  16. 21 May, 2008 1 commit
    • Maciej W. Rozycki's avatar
      Remove default sizeof sizes in configure script when cross-compiling · b8251a54
      Maciej W. Rozycki authored
      
      Since version 2.50 autoconf fully supports checking sizes of types
      (with AC_CHECK_SIZEOF) when cross-compiling.  Therefore there is no
      need to preset the respective cache variables anymore.  The following
      patch removes the special case.  There is no need to adjust AC_PREREQ
      as it's set to 2.50 already.
      
      Tested successfully cross-building for the mips64el-linux-gnu host on
      an i386-linux-gnu build system, removing the following warning
      (because of a mismatch for the "long" type):
      
      Sizeof(__U64__TYPEDEF) is 4 should be 8
      Problem detected with asm_types.h
      Signed-off-by: default avatarMaciej W. Rozycki <macro@linux-mips.org>
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      b8251a54
  17. 22 Apr, 2008 1 commit
  18. 02 Apr, 2008 1 commit
  19. 17 Feb, 2008 2 commits
  20. 27 Jan, 2008 1 commit
    • Theodore Ts'o's avatar
      Don't build e2fsck statically by default anymore · 7e8fe327
      Theodore Ts'o authored
      
      Also removed the --enable-dynamic-static configure option.
      
      Unfortunately the usefulness of building e2fsck statically is gone on
      all modern distributions, since everything else on the system is built
      dynamically these days.  In fact on some distributions it is almost
      impossible to build programs statically any more.
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      7e8fe327
  21. 21 Jan, 2008 1 commit
  22. 04 Jan, 2008 1 commit
  23. 03 Jan, 2008 1 commit
    • Theodore Ts'o's avatar
      Use pkg-config to determine where to find the devmapper library · a4ece359
      Theodore Ts'o authored
      
      Fedora and Red Hat puts the devmapper library in different locations
      compared to Debian, so we use pkg-config.  Unfortunately Debian's
      devmapper.pc file is buggy (See Debian Bug #390243), so we have to
      work around it.
      
      Historically, e2fsprogs has tried not to depend on pkg-config, since
      its answers are so often **wrong** (the Debian bug has been ignored
      for over a year), so I'm hoping I'm not going to regret this.
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      a4ece359
  24. 01 Jan, 2008 3 commits
  25. 16 Dec, 2007 1 commit
    • Theodore Ts'o's avatar
      · 740837de
      Theodore Ts'o authored
      
      Add uuidd daemon to prevent duplicate time-based UUID's
      
      Also store the clock sequence information in a state file in
      /var/lib/misc/uuid-clock so that if the time goes backwards the clock
      sequence counter can get bumped.  This allows us to completely
      correctly generate time-based (version 1) UUID's according to the
      algorithm specified RFC 4122.
      
      Addresses-Sourceforge-Bug: #1529672
      Addresses-Red-Hat-Bugzilla: #233471
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      740837de
  26. 11 Aug, 2007 1 commit
  27. 04 Jul, 2007 1 commit
  28. 05 Apr, 2007 1 commit
  29. 13 Nov, 2006 1 commit
  30. 22 Oct, 2006 2 commits
  31. 02 Oct, 2006 1 commit
  32. 06 Aug, 2006 1 commit