Commit Graph

23 Commits (af9fd39611530713284f5b78c6148ace37a4b1e3)

Author SHA1 Message Date
antona af9fd39611 Wheee! Lots of last minute fixes and enhancements.
- Compiler warning fixes for gnome-vfs and fuse modules. (Anton)
- Change volume mounting (actually device opening) to happen with
  O_EXCL bit set so at least on Linux no one can change the device
  block size under our feet.  (Anton)
- Change volume mounting and mkntfs to set the device block size to the
  sector size using BLKBSZSET ioctl (Linux only).  This should be
  optimal for performance and should fixes the bug of not being able to
  create the backup boot sector if the number of sectors on the device
  is odd, the sector size is 512 bytes, and the kernel is 2.4.  (Anton)
- Enforce cluster size, mft record size, and index record size to be at
  least equal to the sector size and verify they are still valid and in
  particular display a warning message if the volume will not be
  mountable by the kernel driver (it requires mft record size and index
  record size to be below or equal to the system page size which we
  determine using sysconf()).  (Anton)
2006-02-03 22:19:17 +00:00
flatcap 8ee10753ce move a useful ioctl here, from mkntfs 2005-11-19 14:55:51 +00:00
uvman 5b949d07fa Fix comment formats. 2005-10-28 12:55:41 +00:00
flatcap f4e427e91a implement logging in libntfs
fix whitespace
fix build problems
tidy source code
and more...
2005-10-21 18:05:13 +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 0f3a85c8e3 Only include sys/ioctl.h in libntfs/device.c if ./configure detected
it to be present.  (Christophe)
2005-08-19 16:01:15 +00:00
szaka 06052dafcf Replaced all occurances of ENOTSUP to EOPNOTSUPP to be in better harmony
with the kernel driver
2005-08-01 22:10:38 +00:00
flatcap 7a142ef54c got bored. don't read the diffs. 2005-07-06 22:47:01 +00:00
(none)!yura 14db887f8e Rename NTFS_SECTOR_SIZE to NTFS_BLOCK_SIZE to keep in sync with kernel driver.
(Logical change 1.653)
2005-01-11 20:28:28 +00:00
cantab.net!aia21 d33e7eaae4 Fix fallout from previous error output changes.
(Logical change 1.503)
2004-08-19 21:01:11 +00:00
cantab.net!aia21 559786d6c9 - Add new API ntfs_device_heads_get() and
ntfs_device_sectors_per_track_get().

(Logical change 1.345)
2004-03-24 10:36:31 +00:00
cantab.net!aia21 9318887cd5 Add new API device.[hc]::ntfs_device_partition_start_sector_get() and
make mkntfs use it.

(Logical change 1.336)
2004-03-17 12:22:03 +00:00
cantab.net!aia21 607036db7d Rename private to priv_data in ntfs_device_alloc() to avoid name
space clashes with C++.  (Yuval Fledel, modified fix by me)

(Logical change 1.295)
2004-03-05 11:23:42 +00:00
cantab.net!aia21 7239c1f42b Adapt BLKGETSIZE64 definition to the one found in 2.6 kernels.
(Logical change 1.287)
2004-02-27 16:44:10 +00:00
cantab.net!aia21 a033e9dfa0 Add use of BLKGETSIZE64 and fix typos in debug output.
(Logical change 1.278)
2004-02-17 14:01:22 +00:00
omakaista.fi!szaka 5f20b21ef8 BLKGETSIZE ioctl uses unsigned long, not long for the size parameter.
Thus the maximum supported device is 2 TB on 32 bit platforms
instead of only 1 TB.

(Logical change 1.277)
2004-02-17 03:40:22 +00:00
cantab.net!aia21 c9076ef627 - Apply patch from Szaka to fix all %L to %ll.
- Fix remaining %L ti %ll (compress.c).
- Run ./autogen.sh on SuSE 9.0.

(Logical change 1.263)
2004-01-15 16:57:10 +00:00
cantab.net!aia21 5aa2088a95 Update
(Logical change 1.259)
2004-01-09 12:38:56 +00:00
cantab.net!aia21 3244f17522 Enable lots of compiler warnings and fix warning from libntfs.
(Logical change 1.257)
2004-01-07 15:03:17 +00:00
cantab.net!aia21 a34d218e90 merge common functions from disk_io.c into device.c
(Logical change 1.188)
2003-10-06 11:38:25 +00:00
cantab.net!aia21 f0628dd514 Hopefully finished device io abstraction layer in the library.
(Logical change 1.138)
2003-06-02 08:53:04 +00:00
cantab.net!aia21 9f64f96ee9 Initial revision 2003-05-26 12:58:41 +00:00
cantab.net!aia21 5389b4d556 (Logical change 1.136) 2003-05-26 12:58:41 +00:00