Erik Larsson
7506d8b80b
Rename legacy MS_* flags for ntfs_mount with NTFS_MNT_* flags.
...
The MS_* flags originated from system constants. However the flags
passed to ntfs_mount were really unrelated to the system constants and
many new MS_* flags had to be introduced as different features were
added to the library. Those flags had no counterparts in any system
APIs, so using the same naming scheme is inappropriate.
Instead, let's namespace these flags similarly to what has already been
done in ntfsprogs/libntfs earlier. This avoids any possible conflicts
with system constants.
The values of the flags themselves are kept the same as earlier, so
backward compatibility is retained.
2012-11-07 16:29:48 +01:00
Erik Larsson
e08c40170b
Prefix all functions and macros in ntfsprogs/list.h with 'ntfs_/NTFS_'.
...
This avoids name collisions with Mac OS X system headers (specifically
/usr/include/sys/queue.h). It's quite possible that other operating
systems also have similarly named macros in their system headers since
the function/macro names are very generic.
2012-01-13 13:37:33 +01:00
Jean-Pierre André
bfb648b99c
Silenced warning on redefinition of ntfs_time
2010-12-21 15:51:08 +01:00
Erik Larsson
bcdc76f12d
Merge remote branch 'linux-ntfs/libntfs-3g_port-v2_0_0' into PERMISSION_HANDLING_BRANCH
...
Conflicts:
.cvsignore
AUTHORS
CREDITS
ChangeLog
NEWS
README
TODO.libntfs
autogen.sh
configure.ac
include/ntfs/Makefile.am
libntfs-3g/misc.c
libntfs/Makefile.am
libntfs/gnome-vfs-method.c
libntfs/gnome-vfs-module.c
ntfsprogs.spec.in
ntfsprogs/.cvsignore
ntfsprogs/mkntfs.c
ntfsprogs/ntfscat.8.in
ntfsprogs/ntfsclone.c
ntfsprogs/ntfscp.8.in
ntfsprogs/ntfsinfo.c
ntfsprogs/ntfsprogs.8.in
ntfsprogs/ntfsresize.c
ntfsprogs/ntfsrm.c
ntfsprogs/ntfsundelete.h
ntfsprogs/upcase.c
ntfsprogs/utils.c
test/Makefile.am
2010-12-17 09:04:01 +01:00
Erik Larsson
16dbcbec0c
Restored 'local' includes for all the ntfsprogs instead of using system includes (e.g. #include "yada.h" instead of #include <ntfs-3g/yada.h>).
2010-12-16 09:59:42 +01:00
Erik Larsson
18789cdeaa
Replaced all occurrences of the libntfs mount flag NTFS_MNT_FORCE with the libntfs-3g mount flag MS_RECOVER.
...
Note: The NTFS_MNT_FORCE, in addition to what MS_RECOVER does, also bypasses the check for the 'dirty' bit in libntfs' ntfs_mount.
However, this check does not exist in libntfs-3g (libntfs-3g will not check or change the dirty bit, being confident that it can handle volumes marked as 'dirty'), so in essence the same behaviour is achieved with MS_RECOVER.
2010-12-02 22:37:06 +01:00
Erik Larsson
6ff5d3f8a7
Replaced all occurrences of the libntfs mount flag NTFS_MNT_RDONLY with the corresponding libntfs-3g mount flag MS_RDONLY.
2010-12-02 22:36:58 +01:00
Erik Larsson
713fbb390e
Merge commit 'v2_0_0' into libntfs-3g_port-v2_0_0
...
Conflicts:
configure.ac
include/ntfs/Makefile.am
include/ntfs/attrib.h
include/ntfs/bitmap.h
include/ntfs/collate.h
include/ntfs/debug.h
include/ntfs/dir.h
include/ntfs/endians.h
include/ntfs/index.h
include/ntfs/inode.h
include/ntfs/layout.h
include/ntfs/logfile.h
include/ntfs/logging.h
include/ntfs/mft.h
include/ntfs/ntfstime.h
include/ntfs/runlist.h
include/ntfs/support.h
include/ntfs/types.h
include/ntfs/unistr.h
include/ntfs/volume.h
libntfs/Makefile.am
libntfs/attrib.c
libntfs/attrlist.c
libntfs/bitmap.c
libntfs/bootsect.c
libntfs/collate.c
libntfs/compress.c
libntfs/debug.c
libntfs/device.c
libntfs/device_io.c
libntfs/dir.c
libntfs/index.c
libntfs/inode.c
libntfs/lcnalloc.c
libntfs/logfile.c
libntfs/logging.c
libntfs/mft.c
libntfs/mst.c
libntfs/runlist.c
libntfs/security.c
libntfs/unistr.c
libntfs/unix_io.c
libntfs/volume.c
libntfs/win32_io.c
ntfsprogs/Makefile.am
ntfsprogs/mkntfs.c
ntfsprogs/ntfscat.c
ntfsprogs/ntfsclone.c
ntfsprogs/ntfscmp.c
ntfsprogs/ntfscp.c
ntfsprogs/ntfsinfo.c
ntfsprogs/ntfsmount.8.in
ntfsprogs/ntfsmount.c
ntfsprogs/ntfsundelete.c
ntfsprogs/upcase.c
2010-12-02 22:31:21 +01:00
Erik Larsson
5b9b4c7e49
Removing all references to the libntfs library version until we have such functionality in libntfs-3g.
2010-12-02 16:38:16 +01:00
Erik Larsson
4a641c85e0
Adapted code to latest libntfs-3g, based on PERMISSION_HANDLING_BRANCH. Now requires libntfs-3g version 2010.5.22 minimum.
2010-12-02 16:35:27 +01:00
Erik Larsson
f03d683fa0
Commented out all references to 'version.h' (which doesn't exist in libntfs-3g) and added a stub implementation of ntfs_libntfs_version in utils.h to allow things to compile.
2010-12-02 15:58:14 +01:00
Erik Larsson
1860eff1da
Updated all includes in the basic ntfsprogs utilities for libntfs-3g.
2010-12-02 15:57:58 +01:00
Yura Pakhuchiy
37476cf609
Introduce NTFS_MNT_FORCE instead of third parameter of utils_mount_volume
2007-09-15 18:12:32 +03:00
yura
cb27c9f616
* Rename MS_{RDONLY,NOATIME} to NTFS_MNT_{RDONLY,NOATIME}.
...
* Introduce NTFS_MNT_CASE_SENSITIVE.
2006-11-12 22:46:50 +00:00
szaka
c7a53338c0
Fix all incorrect getopt_long() return value usages.
2006-04-05 12:43:06 +00:00
flatcap
af6f7606e4
tidy evil roff usage
...
add/document missing options
add missing authors
standardise program usage()
standardise options look
update download and contact details
2005-11-21 21:25:14 +00:00
flatcap
4e6dd9b97b
upgrade to use new logging
...
change stderror messages to ntfs_log_perror
2005-10-29 00:08:43 +00:00
szaka
d5a925b3bf
ntfsinfo and ntfsls follow the convention how other utilities read
...
the device argument: no -d or --device option is needed
2005-10-28 18:00:44 +00:00
uvman
5b949d07fa
Fix comment formats.
2005-10-28 12:55:41 +00:00
flatcap
8a584700c5
whitespace fixes - no code changes
2005-10-26 22:54:57 +00:00
antona
0c293d0407
- Add API (actually renamed from what Rich/FlatCap did):
...
volume.[hc]::ntfs_libntfs_version() which returns a pointer to a
static const string of the libntfs verion, i.e. at the moment this is
"8.0.0". This required moving the version specifications from
libntfs/Makefile.am to configure.ac. This should hopefully have the
sideeffect that I will remember to increment it when incrementing the
ntfsprogs version number when making a release given the two are
right under one another. (Anton)
- Change ALL utilities to display the libntfs version they are running
on. This should make debugging easier in the case that people are
running mismatched utilities/library. (Anton)
2005-10-07 14:10:56 +00:00
antona
8db479a6b1
Patch from Christophe:
...
A lot of headers are checked by autoconf (AC_CHECK_HEADERS in configure.ac).
Please find a patch that add the missing "#ifdef" to the source code.
2005-09-28 13:47:47 +00:00
antona
2a104d8eda
Megapatch!!! Check evecrything!!! I probably broke everything!!!
2005-09-24 22:54:55 +00:00
cha0smaster
9028a53dfc
Sorry it's very large commit (46K of diffs between my local tree and CVS HEAD
...
before commit), file and directory creation/deletion recursively requested many
changes. See ChangeLog for description of all changes.
2005-08-14 15:44:46 +00:00
flatcap
8567df0b6d
display year in long listing
2005-08-11 13:53:08 +00:00
antona
6124aafffb
Move timeconv to ntfstime, update changelog, and news for new release.
2005-08-04 09:59:39 +00:00
cha0smaster
b39a2a401f
- Move ntfs2utc and utc2ntfs from utils.[ch] to timeconv.h.
...
- Add [acm]time fields to struct ntfs_inode and set them during ntfs_inode_open. Update ntfsmount to use them.
- Bump version, update autoscripts.
2005-07-20 19:06:28 +00:00
cha0smaster
0f4d02e9e4
ntfsls: not all files started with '$' are system files, check by inode number instead.
2005-07-20 16:04:40 +00:00
flatcap
7a142ef54c
got bored. don't read the diffs.
2005-07-06 22:47:01 +00:00
cha0smaster
e323ed6a03
Move utils_pathname_to_inode from to library (dir.c), adapt it for library, rename it to ntfs_pathname_to_inode, update all users.
2005-06-12 18:12:55 +00:00
flatcap.org!ntfs
a61808707f
minor build fix
...
(Logical change 1.494)
2004-08-12 13:33:25 +00:00
flatcap.org!ntfs
9b94d609cd
default to -a so the user always gets some output
...
(Logical change 1.492)
2004-08-12 09:22:54 +00:00
flatcap.org!ntfs
ac81ff1e9f
fixes to recursion
...
(Logical change 1.486)
2004-08-11 09:09:56 +00:00
cantab.net!aia21
95a799559c
Change include from <> to "" for list.h
...
(Logical change 1.482)
2004-08-09 13:19:11 +00:00
flatcap.org!ntfs
acc1ae3a46
minor code tidy up
...
(Logical change 1.481)
2004-08-09 11:01:35 +00:00
flatcap.org!ntfs
82e5f43087
Giang: Add a recursive option to ls
...
(Logical change 1.480)
2004-08-08 22:47:46 +00:00
cantab.net!aia21
3423a8a909
Rename uchar_t to ntfschar.
...
(Logical change 1.392)
2004-05-14 13:02:33 +00:00
cantab.net!aia21
123b1028ec
Fix lots of warnings about no prototypes by adding
...
the 'static' keyword. (Yuval)
(Logical change 1.381)
2004-04-23 13:55:49 +00:00
cantab.net!aia21
9193cb6298
Update
...
Fix warnings on powerpc architecture where it would seem char is
unsigned so comparisons with -1 cause a warning that comparison is
always true/wrong. (Thanks to Ender for reporting.)
(Logical change 1.324)
2004-03-12 09:30:03 +00:00
cantab.net!aia21
ddeee65b8d
Fix all occurences of printf with %ll length modifiers but 64 bit
...
arguments to typecast the arguments to (unsigned) long long to avoid
the warnings when compiling on 64 bit architectures.
(Logical change 1.306)
2004-03-09 14:47:34 +00:00
flatcap.org!ntfs
c536fe31da
minor bugfix
...
(Logical change 1.194)
2003-10-10 21:53:32 +00:00
flatcap.org!ntfs
6a9c6ada8f
replace ucstos with ntfs_ucstombs
...
replace stoucs with ntfs_mbstoucs
adapt routine to convert a path to an inode (now in utils)
fix memory leaks in error paths
(Logical change 1.193)
2003-10-10 21:50:49 +00:00
cantab.net!aia21
9016aed815
Add -i parameter to syntax output of ntfsls.
...
(Logical change 1.185)
2003-09-30 10:32:09 +00:00
cantab.net!aia21
644142fbe7
Fix a bug with the display of mft reference numbers.
...
Update display to match /bin/ls.
(Logical change 1.175)
2003-08-29 13:01:46 +00:00
cantab.net!aia21
66d9310d87
Cleanup option parsing, help text, etc so they are all consistent with each other.
...
Also remove unused options.
(Logical change 1.173)
2003-08-26 13:05:16 +00:00
cantab.net!aia21
7130beb807
- Some code tidyups.
...
- Display file when the specified path includes a file name
at the end rather than a directory.
(Logical change 1.168)
2003-08-03 14:54:06 +00:00
cantab.net!aia21
af45ca7579
Cleanup ntfsls:
...
- formatting
- some error checking
- memory leaks (close inodes and release search contexts)
- add lots of FIXMEs where work is needed
(Logical change 1.165)
2003-07-30 13:45:37 +00:00
cantab.net!aia21
7411e15d6a
Remove unused line.
...
(Logical change 1.159)
2003-07-23 09:33:40 +00:00
flatcap.org!flatcap
6820c2d110
Lode: smarter way to get the filesize
...
2003/07/22 21:28:05+01:00 flatcap.org!flatcap
Lode: find the file size from the data attribute
2003/07/22 21:08:43+01:00 flatcap.org!flatcap
(Logical change 1.157)
2003-07-22 20:41:19 +00:00
flatcap.org!flatcap
7f4c7ac959
Initial revision
2003-07-22 20:41:19 +00:00