Commit Graph

208 Commits (cdd58aaee3b90bb9208a347b60c908947dbd7cab)

Author SHA1 Message Date
Jean-Pierre André ac8a980e7a Preferred access control by file system on OpenIndiana
ntfs-3g cannot reliably use the access control made by the kernel on
OpenIndiana, so do it at the file system level until this is solved.
2012-01-23 17:39:47 +01:00
Jean-Pierre André d06ee35332 Used ENOENT instead of ENODATA when the latter is not defined (Robert Millan)
ENODATA is not defined by Posix and is lacking on FreeBSD
2012-01-23 16:50:25 +01:00
Jean-Pierre André 59ecea5c80 new : allow compression in default setup
With the default mount options, compression of new files are now done
if the parent directory is marked for compression. The mount option
"compression" is not needed any more, but the option "nocompression"
can be used to disable compression of new files.

The default option also applies to applications using libntfs-3g with
no mount command.
2011-10-20 18:55:32 +02:00
Jean-Pierre André c0955e5d74 cosmetic : fixed improper wordings (hggdh2) 2011-09-28 16:41:12 +02:00
Jean-Pierre André 08bf2b5bcb Avoided logging meaningless fixup errors in ntfsclone and ntfsresize
Logging of fixup errors for uninitialized inodes cause unnecessary
worries and suspicion of malfunctions in ntfs-3g. This patch silences
these loggings in ntfsclone and ntfsresize which have to analyze all
inodes, including the uninitialized ones.
2011-09-23 11:28:42 +02:00
Erik Larsson 8d06955ea4 Cleaned up and moved label changing functionality into libntfs-3g.
The label changing code in ntfslabel was cleaned up and modified to use the more
advanced functionality of libntfs-3g instead of using older custom code to
resize and create resident attributes.
The core label changing functionality was also moved into the library so it can
be reused by other programs.
2011-09-13 09:43:30 +02:00
Jean-Pierre André d7926f72d0 Provided support for big writes 2011-07-05 12:17:30 +02:00
Jean-Pierre André 5cd49257b0 Removed unneeded variables as warned by gcc 4.6 2011-07-05 12:17:29 +02: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é f219d2e07e Fixed inconsistent interface to ntfs_initialize_file_security()
The "flags" argument of ntfs_initialize_file_security() is intended to
feed the one to ntfs_mount(). Having the same type for both may avoid
future problems.
2011-03-23 09:20:10 +01:00
Jean-Pierre André 30c06f9092 Fixed dealing with holes when expanding an attribute 2011-02-16 12:22:30 +01:00
Jean-Pierre André 3160203c97 Defined option acl to request the use of Posix ACLs 2011-02-08 13:52:12 +01:00
Jean-Pierre André 4c6cf9d977 Moved the knowledge of default upcase size to unistr.c 2011-02-08 13:52:12 +01:00
Jean-Pierre André addc9be334 Merged sparse testing when appending with ntfsprogs requirement 2011-02-08 13:52:12 +01:00
Jean-Pierre André 9ddc70f19b Moved listxattr() to a specific source module 2011-01-17 15:50:25 +01:00
Jean-Pierre André 0cb35ac7aa Enabled expanding an attribute without creating a hole 2010-12-21 15:51:07 +01:00
Jean-Pierre André d4e2a501a5 Enabled forensic mounting 2010-12-21 15:51:07 +01:00
Jean-Pierre André 1c9ef6293b Moved the definition of leMFT_REF to layout.h 2010-12-21 15:51:07 +01:00
Jean-Pierre André 48caa7a45e Took care of alignments needed on some processors 2010-11-09 09:43:31 +01:00
Jean-Pierre André 351aec3f7a Enabled renaming of system extended attributes 2010-10-26 08:59:52 +02:00
Jean-Pierre André 1898b11481 Improved appending data to fragmented files 2010-10-26 08:59:51 +02:00
Jean-Pierre André a92c57735b Added an extended attribute name for creation time 2010-10-26 08:59:51 +02:00
Jean-Pierre André 13b578d9b1 Added a big endian extended attribute name for attrib and times 2010-10-26 08:59:51 +02:00
Jean-Pierre André 9c0e3a7b4e Enabled use of fuse cacheing in lowntfs-3g under conditions 2010-10-26 08:59:51 +02:00
Jean-Pierre André e1ef554dd2 Grouped system extended attributes functions into a dedicated module 2010-10-26 08:59:51 +02:00
Jean-Pierre André 1afaf16912 Implemented the sync mount option 2010-10-26 08:59:51 +02:00
Jean-Pierre André ecbc2b9103 Implemented fsync() and fsyncdir() 2010-10-26 08:59:51 +02:00
Jean-Pierre André dd4910b935 Forced alignment on cached structs 2010-10-26 08:59:51 +02:00
Jean-Pierre André 07e686a744 Made sure Posix ACLs are not padded by compiler 2010-10-01 10:38:35 +02:00
Jean-Pierre André 654568a1d1 Removed the signature of deprecated ntfs_file_values_compare() 2010-08-06 21:33:47 +02:00
Jean-Pierre André 09df7eade5 Fixed creating empty encrypted extended attributes 2010-07-22 14:46:01 +02:00
Jean-Pierre André b1de6e16fb Fixed compressed attribute made non resident to leave space for another one 2010-06-18 14:02:58 +02:00
Jean-Pierre André 15c4d282ce Enable/disable compression according to option 2010-06-03 10:11:42 +02:00
Jean-Pierre André a192775e2a developed overwriting compressed files 2010-05-25 10:25:31 +02:00
Jean-Pierre André 693aa8780d enabled case insensitive file names in lowntfs-3g 2010-05-25 10:12:44 +02:00
Jean-Pierre André 2e86428fc0 redefined a default user mapping (a few changes in mount options) 2010-05-25 10:05:10 +02:00
Jean-Pierre André 3745d0a1e3 marked files whose name has a dot initial as "hidden" if option hide_dot_files 2010-05-25 09:58:36 +02:00
Jean-Pierre André 74134fc76d fixed alignment of cached data 2010-05-25 09:49:52 +02:00
Jean-Pierre André 84c93479d8 fixed a compilation issue with uClibc 2010-04-19 10:53:31 +02:00
jpandre da39179421 Merged Anton's patch for $TXF_DATA attribute 2010-01-08 11:15:46 +00:00
jpandre d78add4e8f Developed time stamping up to 100ns resolution 2010-01-04 08:24:44 +00:00
jpandre 393af928d9 Prevented TXF_DATA attribute from being made non-resident 2010-01-04 08:07:29 +00:00
jpandre 9f92518396 Grouped permission mode setting in the parameter file 2009-12-18 10:31:42 +00:00
jpandre 9dd9daeb6d Implemented low-level interface to fuse 2009-12-18 08:43:45 +00:00
jpandre 6072a95591 Cached looked-up inodes for subsequent use 2009-12-18 08:27:05 +00:00
jpandre d75f69d80e Cached inode data for subsequent use 2009-12-18 08:12:23 +00:00
jpandre 41a371f4a7 Redesigned caches for indexing cached entries 2009-12-17 17:36:06 +00:00
jpandre 7c88ccb95b Grouped parameters affecting the global behavior in a specific file 2009-12-17 15:24:02 +00:00
jpandre c1adbc1787 Implemented getting/setting/removing object ids 2009-12-17 09:07:56 +00:00
jpandre d990f7996c Changed the interfaces to use extended attributes 2009-12-17 08:24:13 +00:00
jpandre 7bea2202d7 Made direct calls to collation functions 2009-12-16 10:20:57 +00:00
jpandre 195945cdc0 Evaluated file names collations in a single parsing 2009-12-16 09:45:28 +00:00
jpandre 2f8ced2ddd Kept junctions points absolute or relative as specified 2009-12-15 09:25:36 +00:00
jpandre c5c51ec1fe Simplified interfaces for checking permissions 2009-12-14 17:23:12 +00:00
jpandre 758a99ea87 Avoided double copy of dir when closing a file in an open dir 2009-12-10 10:04:53 +00:00
jpandre 20fb2395fd Simplified tracking of forced time stamps 2009-11-26 13:34:42 +00:00
jpandre a75724fea8 Fixed a few misleading endianness types 2009-11-24 14:18:53 +00:00
jpandre 3af7bebe7b Mac OS X Unicode normalization form conversion (Erik Larsson) 2009-11-05 11:40:44 +00:00
jpandre b78d895575 Added indexing of reparse data into $Extend/$Reparse 2009-11-03 14:35:53 +00:00
szaka b3cbe9e4bd remove unused version.c version.h 2009-10-04 02:02:04 +00:00
jpandre c085f70be1 Developed the removal of a DOS name 2009-08-14 14:46:46 +00:00
jpandre 5e650c0c91 Developped getting and setting NTFS times 2009-07-09 15:20:14 +00:00
jpandre 06e553b04d Fixed permissions of created files when parent directory has a default ACL 2009-07-04 19:14:56 +00:00
jpandre 9a4672ca65 Developped getting and setting DOS names (short 8+3 names) 2009-07-01 19:45:59 +00:00
jpandre 3ddbce3ea6 Changed conditions to activate protection modes 2009-07-01 19:35:04 +00:00
jpandre f259fb44df Improved cluster allocation on volumes too filled 2009-07-01 19:16:33 +00:00
jpandre c79b3777ca Implemented backup/restoring of encrypted files (by Martin Bene) 2009-05-20 14:17:31 +00:00
jpandre d898b64a04 Changed interface for translating permissions to avoid a version dependency 2009-04-10 07:10:04 +00:00
jpandre 2fbaecd759 Extended transparent compression support to sequential writing to compressed files 2009-04-03 13:33:24 +00:00
jpandre 2a1d75a3da Adapted to ntfs-3g.2009.3.8 2009-03-27 09:10:00 +00:00
jpandre a13ee0c82c Fed the free spaces in context for calls from security API 2009-03-27 08:36:07 +00:00
jpandre aa54558345 Fixed wrong size (quota_charged, usn) 2009-03-23 16:09:24 +00:00
jpandre ddfb2175a9 Improved creating gaps in sparse files 2009-02-13 10:37:53 +00:00
jpandre 93b695f1cc Adapted to ntfs-3g-2009.2.1 2009-02-12 20:32:21 +00:00
jpandre 2dc7362ba9 Improved computation of runlist for fragmented files O(n) instead of O(n*n) 2009-02-03 17:12:04 +00:00
jpandre 11216c6942 Adapted to ntfs-3g-2009.1.1 2009-01-23 11:11:44 +00:00
jpandre 9b996d31b9 Relocated code for setting/retrieving NTFS attribs 2009-01-17 08:37:17 +00:00
jpandre ca6466c6bb Mapped a few NTFS internal data to extended attributes 2009-01-05 13:56:05 +00:00
jpandre d3f3a19866 Adapted to ntfs-3g.1.5222-RC 2009-01-05 13:28:06 +00:00
szaka 50702ea690 add --disable-posix-acl configure option 2008-12-06 12:34:37 +00:00
jpandre 6faf38df12 Adapted to ntfs-3g.1.5130 2008-12-01 15:29:23 +00:00
jpandre c4c3c8f90f Fixed inclusion of two functions whatever ACL option selected 2008-12-01 15:07:49 +00:00
jpandre ee37dcab6d Interpreted symbolic links created by Vista as symbolic links 2008-11-26 15:57:20 +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 33bccc53c9 Implemented an interpretation of junction points 2008-11-02 09:14:57 +00:00
jpandre cbca88095d Fixed type of argument for file creation 2008-09-21 17:27:21 +00:00
jpandre e5286c09d6 Adapted to ntfs-3g.1.2926-RC 2008-09-19 13:39:38 +00:00
jpandre f857740a4d Renamed inode_cache to xinode_cache for easier reference 2008-09-19 13:27:55 +00:00
jpandre a675f60863 Declared mapping data as const in a few interfaces 2008-09-09 15:26:38 +00:00
jpandre cb59654f39 Implemented an extended attribute interface to get/set NTFS ACLs 2008-09-01 16:24:54 +00:00
jpandre 6bfd3ed546 Fixed a stupid name prefixing 2008-08-30 10:31:40 +00:00
jpandre fd60178d8f Made possible to mention root as a designated user or group 2008-08-27 08:35:53 +00:00
jpandre d3da724466 Redefined the options to activate the levels of permissions checking 2008-08-25 09:11:43 +00:00
jpandre 13552eba52 Integrated full utf-8 to utf-16le conversions, based on code by Berhard Kaindl 2008-08-21 12:04:51 +00:00
jpandre 62780e137b Cleaned and fixed endianness conversions 2008-08-21 11:02:35 +00:00
jpandre 713e6349c8 Redefined the options to activate the levels of checking 2008-08-21 10:42:03 +00:00
jpandre 7f42da0b07 Reorganized and split the security source file, a few interfaces changed 2008-08-21 10:27:46 +00:00
jpandre 6a47056d18 Merged the Posix ACL code, now it is a compile-time option 2008-08-21 10:08:20 +00:00
jpandre 499e106341 Adapted to ntfs-3g.1.2812 2008-08-16 15:17:47 +00:00
jpandre ca9e62559a Added entries in security API to process user mappings and Win32 attribs 2008-08-16 15:15:28 +00:00