1. 07 Sep, 2012 1 commit
    • Theodore Ts'o's avatar
      configure: fix --enable-relative-symlink · 91d11da1
      Theodore Ts'o authored
      
      The configure option --enable-relative-symlinks was incorrectly
      specified in configure.in, as --enable-symlink-relative-symlinks.  Fix
      the configure script so that --enable-relative-symlinks works, as well
      as previous incorrect command line option.  We will keep the older,
      incorrect --enable-symlink-relative-symlinks for at least two years
      before removing it.
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      91d11da1
  2. 13 Jun, 2012 1 commit
    • Theodore Ts'o's avatar
      Fix blhc (Build Log Hardening Check) warnings · c1986ecb
      Theodore Ts'o authored
      
      The Build Log Hardening Check is a debian tool which scans the output
      of a package build making sure that the security hardening flags are
      used when compiling and linking all of binaries in a package.
      
      For the most part we were passing CFLAGS, CPPFLAGS, and LDFLAGS down
      to the compiler and link commands, but there there were one or two
      exceptions.  In addition, there where a few places in "make install"
      where the V=1 option was not being honored, which triggered blhc
      warnings since it couldn't analyze those commands.
      
      The e2fsck.static was the only binary that was not getting built and
      packaged with the hardening flags, but I've fixed all of the blhc
      warnings so in the future it will be obvious if we regress.
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      c1986ecb
  3. 28 May, 2012 1 commit
    • Theodore Ts'o's avatar
      libquota: remove quota_is_on() which was the last user of quotactl() · 3b802e43
      Theodore Ts'o authored
      
      The quotactl() system call was being used without the use of a
      function prototype.  On closer examination, it turns out the one user
      of that system call was the quota_is_on() function, which is not used
      by e2fsprogs at all.  Since libquota is an e2fsprogs-internal library,
      and not one that we plan to export any time soon, the simplest thing
      to do is to simply remove quota_is_on(), which in turn allows us to
      remove all of the infrastructure around using the Linux-specific
      quotactl() system call.
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      3b802e43
  4. 13 May, 2012 1 commit
  5. 05 Apr, 2012 2 commits
  6. 07 Mar, 2012 1 commit
  7. 27 Feb, 2012 1 commit
  8. 28 Nov, 2011 1 commit
  9. 14 Nov, 2011 1 commit
  10. 04 Oct, 2011 1 commit
    • Theodore Ts'o's avatar
      libquota: clean up some gcc -Wall warnings · edbfd75d
      Theodore Ts'o authored
      
      Remove unused variables, places where 'return' was used with no value
      in a non-void function, missing function declarations, etc.  Don't
      assume that all systems have quotactl(), and use <sys/quota.h> if it
      exists to define the quotactl interfaces.
      
      One of the unused variables also got rid of a non-portable use of
      PATH_MAX.
      
      Cc: Aditya Kali <adityakali@google.com>
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      edbfd75d
  11. 19 Sep, 2011 1 commit
    • Theodore Ts'o's avatar
      debian: add support for multiarch · 55e00a25
      Theodore Ts'o authored
      
      Enhance the debian build rules so it will create multiarch compliant
      packages on those distributions that have support for it.
      
      Also remove e2initrd-helper from the e2fsprogs package since no one
      uses it any more.
      
      Also update the debian policy standards version to 3.9.2.
      
      Addresses-Debian-Bug: #632169
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      55e00a25
  12. 18 Sep, 2011 1 commit
    • Theodore Ts'o's avatar
      Shorten compile commands run by the build system · d1154eb4
      Theodore Ts'o authored
      
      The DEFS line in MCONFIG had gotten so long that it exceeded 4k, and
      this was starting to cause some tools heartburn.  It also made "make
      V=1" almost useless, since trying to following the individual commands
      run by make was lost in the noise of all of the defines.
      
      So fix this by putting the configure-generated defines in lib/config.h
      and the directory pathnames to lib/dirpaths.h.
      
      In addition, clean up some vestigal defines in configure.in and in the
      Makefiles to further shorten the cc command lines.
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      d1154eb4
  13. 16 Sep, 2011 1 commit
    • Lukas Czerner's avatar
      e2fsprogs: Use punch hole as "discard" on regular files · d2bfdc7f
      Lukas Czerner authored
      
      If e2fsprogs tools (mke2fs, e2fsck) is run on regular file instead of
      on block device, we can use punch hole instead of regular discard
      command which would not work on regular file anyway. This gives us
      several advantages. First of all when e2fsck is run with '-E discard'
      parameter it will punch out all ununsed space from the image, hence
      trimming down the file system image. And secondly, when creating an
      file system on regular file (with '-E discard' which is default), we
      can use punch hole to clear the file content, hence we can skip inode
      table initialization, because reads from sparse area returns zeros. This
      will result in faster file system creation (without the need to specify
      lazy_itable_init) and smaller images.
      
      This commit also fixes some tests that would fail due to mke2fs showing
      discard progress, hence the output would differ.
      Signed-off-by: default avatarLukas Czerner <lczerner@redhat.com>
      Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
      d2bfdc7f
  14. 31 Aug, 2011 1 commit
    • Aditya Kali's avatar
      e2fsprogs: add quota library to e2fsprogs · f239fefc
      Aditya Kali authored
      
      This patch adds the quota library (ported form Jan Kara's quota-tools) in
      e2fsprogs in order to make quotas as a first class supported feature in Ext4.
      This patch also provides interface in lib/quota/mkquota.h that will be used by
      mke2fs, tune2fs, e2fsck, etc. to initialize and update quota files.
      This first version of the quota library does not support reading existing quota
      files. This support will be added in the near future.
      Thanks to Jan Kara for his work on quota-tools. Most of the files in this patch
      are taken as-is from quota tools and were simply modified to work with
      libext2fs in e2fsprogs.
      Signed-off-by: default avatarAditya Kali <adityakali@google.com>
      Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
      f239fefc
  15. 11 Aug, 2011 1 commit
  16. 24 Dec, 2010 1 commit
  17. 17 Dec, 2010 1 commit
  18. 02 Aug, 2010 1 commit
  19. 17 May, 2010 1 commit
  20. 26 Nov, 2009 1 commit
    • Theodore Ts'o's avatar
      configure: Work around bug in autoconf 2.64 · 57aa50d4
      Theodore Ts'o authored
      
      In autoconf 2.64, if AC_CHECK_LIB is first used in a conditional that
      evaluates to false, the helper function ac_fn_c_try_link gets defined
      inside that conditional, and then subsequent attempts to use
      ac_fn_c_try_link() will blow up.  Work around this by moving an
      unconditional use of AC_CHECK_LIB to the beginning of configure.in.
      Signed-off-by: default avatar"Theodore Ts'o" <tytso@mit.edu>
      57aa50d4
  21. 21 Oct, 2009 1 commit
  22. 04 Oct, 2009 1 commit
    • Eric Sandeen's avatar
      mke2fs: get device topology values from blkid · 9ed8e5fe
      Eric Sandeen authored
      
      Handle automatic selection of stride/stripe:
      
      mke2fs 1.41.9 (22-Aug-2009)
      Filesystem label=
      OS type: Linux
      Block size=4096 (log=2)
      Fragment size=4096 (log=2)
      Stride=16 blocks, Stripe width=32 blocks
      ...
      
      And warn on block device misalignment:
      
      mke2fs 1.41.9 (22-Aug-2009)
      /dev/sdc1 alignment is offset by 32256 bytes.
      This may result in very poor performance, (re)-partitioning suggested.
      Proceed anyway? (y,n)
      Signed-off-by: default avatarEric Sandeen <sandeen@redhat.com>
      Signed-off-by: default avatarTheodore Ts'o <tytso@mit.edu>
      9ed8e5fe
  23. 07 Sep, 2009 1 commit
  24. 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
  25. 18 Jul, 2009 1 commit
  26. 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
  27. 29 Jun, 2009 1 commit
  28. 22 Apr, 2009 1 commit
  29. 15 Apr, 2009 1 commit
  30. 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
  31. 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
  32. 01 Sep, 2008 1 commit
  33. 27 Aug, 2008 1 commit
  34. 22 Aug, 2008 3 commits
  35. 13 Jul, 2008 2 commits