Commit Graph

22 Commits

Author SHA1 Message Date
Jean-Pierre André
9a8aeeea13 Prevented locally defined headers from interfering with ntfs-3g ones
Order the include directories so that those defined for ntfs-3g have
priority over locally defined ones.
2018-08-02 16:47:16 +02:00
Jean-Pierre André
f4e3f126df Implemented fstrim(8)
fstrim(8) discards unused blocks on a mounted filesystem. It is useful for
solid-state drives (SSDs) and thinly-provisioned storage.
Only trimming the full device (with no option) is supported.

Contributed by Richard W.M. Jones
2014-07-31 14:03:11 +02:00
Jean-Pierre André
ae459dd7b3 Implemented an extended attribute to get/set EAs
The new extended attribute "system.ntfs_ea" can now be used to get or
set the set of EAs of a file or directory.
2014-04-12 09:22:17 +02:00
Jean-Pierre André
9442db0d8b Added use of hd library to get the legacy BIOS geometry
Author: Anton Altaparmakov <anton@tuxera.com>
Date:   Tue Feb 12 10:33:55 2013 +0000

    Modify libntfs-3g to make use of hd library to get the legacy BIOS geometry
    from EDD.  We scan all whole disk devices on the system and check if they
    match the open ntfs device and if not we scan all partition devices on the
    system and check if they match the open ntfs device.

    If we find a partition device to match then we find its parent device again
    using the hd library.

    Once we have the parent of the partition device or we matched a whole disk
    device we get the legacy EDD sectors per track and heads again using the hd
    library.

    Use of the hd library is auto detected (based on finding <hd.h> header file,
    being able to link against libhd and finding the hd_list symbol in libhd.

    Use can also be disabled/enabled/libhd prefix specified at ./configure time.
    See ./configure --help for details.

    Note this obviously requires libhd to be installed.  On Ubuntu 12/04 systems
    the relevant packages needed are libhd-dev and libhd16 (on older Ubuntu
    versions it will be libhdN where N is some number <= 16 but an easy way to
    get the right package is to simply install libhd-dev which by dependency
    pulls in the correct libhdN package) whilst on SLES systems the relevant
    packages needed are hwinfo and hwinfo-devel.
2013-02-12 15:45:54 +01:00
Jean-Pierre André
571dbc5784 Fixed device path canonicalization for use by devmapper (basilinya)
For some reason, when the monted device is "/dev/mapper/*", a record
in the form "/dev/dm-*" ends up in /etc/mtab and the device cannot be
unmounted.

The reason is unclear, the /dev/mapper name is not a symlink, and the
function doing the name change is not known. No detailed feedback from
the users having met the issue.

The patch changes the name back to the /dev/mapper name after realpath()
is called, and, if there is an actual change, both the name passed to
ntfs-3g and the one passed to fuse and mount are logged in the hope
of getting a clue about what is happening.

But ntfs-3g is probably not the right place for a fix.
2011-07-05 12:17:12 +02:00
Jean-Pierre André
f510c5cdf4 Got the target libs to build libntfs-3g and libfuse-lite if selected 2011-07-05 12:17:11 +02:00
Erik Larsson
7287c05ff4 Made ntfsprogs compilation conditional and turned off by default. It is enabled with '--enable-ntfsprogs'. 2010-12-16 17:35:06 +01:00
Erik Larsson
daa1f3edcd Bugfixes for 'make extra'. 2010-12-16 10:08:34 +01:00
Jean-Pierre André
e1ef554dd2 Grouped system extended attributes functions into a dedicated module 2010-10-26 08:59:51 +02:00
jpandre
41a371f4a7 Redesigned caches for indexing cached entries 2009-12-17 17:36:06 +00:00
jpandre
c1adbc1787 Implemented getting/setting/removing object ids 2009-12-17 09:07:56 +00:00
szaka
e5a1325ed3 remove unused device_io.c 2009-12-03 06:17:43 +00:00
jpandre
38d77ef0dc Added device_io.c and secaudit.h for "make dist" (Erik Larsson) 2009-12-01 15:22:29 +00:00
szaka
b3cbe9e4bd remove unused version.c version.h 2009-10-04 02:02:04 +00:00
jpandre
c79b3777ca Implemented backup/restoring of encrypted files (by Martin Bene) 2009-05-20 14:17:31 +00:00
jpandre
751483b465 Inserted the new files reparse.c and reparse.h in the build process 2008-11-04 13:39:02 +00:00
jpandre
7f42da0b07 Reorganized and split the security source file, a few interfaces changed 2008-08-21 10:27:46 +00:00
szaka
6a59ac3583 fix: support build in a separate directory (Alon Bar-Lev) 2008-05-19 17:40:34 +00:00
szaka
2f85653372 Fix build. libfuse-lite and include/fuse-lite must be symlinks to the
respective fuse lite directories.
2008-03-28 22:26:24 +00:00
szaka
965dd72bb3 Add --disable-library option: don't install libntfs-3g but link into ntfs-3g.
Binary size is 10-15% down, performance is 2-5% up (Bernhard Kaindl)
2007-08-23 22:32:25 +00:00
szaka
e52eb5f939 new: libntfs-3g is versioned 2007-04-06 20:22:09 +00:00
szaka
ba63b7daca initial CVS import 2006-10-30 22:32:48 +00:00