Commit Graph

11 Commits

Author SHA1 Message Date
Jean-Pierre André
32c27a8a4f Defined the request argument of ioctl() as unsigned long
On linux the request argument of ioctl() is defined as an unsigned long,
but the fuse protocol squashes it into a signed int. As a consequence
the value received by ntfs-3g may appear as negative and different from
the value defined by the corresponding macro.
So define the request argument as unsigned long in ntfs-3g. It has
however to be fed as unsigned from fuse until the fuse protocol is
updated.
2020-03-07 10:31:12 +01:00
Jean-Pierre André
2514ce6a42 Attempted mounting read-only after failed permission to read-write
If a partition image could not be opened read-write, retry as read-only
2018-08-22 09:43:19 +02:00
Jean-Pierre André
ad79372024 Checked whether the device to mount was forced read-only
Force the read-only mount mode when the device was set so through a
command "blockdev --setro".
2018-06-01 15:59:09 +02:00
jpandre
c910b8596b ntfs_fsync: fix comment (Erik Larsson) 2009-11-05 11:30:47 +00:00
jpandre
01b530685d Mac OS X true fsync (Erik Larsson) 2009-11-05 11:30:05 +00:00
szaka
779903418a ntfs_device_unix_io_close(), ntfs_device_unix_io_sync(): log all errors 2007-06-08 21:35:33 +00:00
szaka
d0a2e7d3a2 ntfs_read/ntfs_write: use pread/pwrite => 2-8% speed increase (Henk, Szaka) 2006-12-12 23:16:43 +00:00
szaka
6c120f3d35 fix: unmount wasn't synchronous for block devices 2006-11-12 23:34:50 +00:00
szaka
538349c592 ntfs_device_unix_io_open: check for block device early on 2006-11-12 21:29:12 +00:00
szaka
f8d6b01e99 unconditionally sync device 2006-11-10 23:08:06 +00:00
szaka
ba63b7daca initial CVS import 2006-10-30 22:32:48 +00:00