OSDN Git Service

Fixed fstrim(8) applied to partitions
authorJean-Pierre André <jpandre@users.sourceforge.net>
Mon, 4 Aug 2014 15:39:50 +0000 (17:39 +0200)
committerJean-Pierre André <jpandre@users.sourceforge.net>
Mon, 4 Aug 2014 15:39:50 +0000 (17:39 +0200)
commitc26a519da1ed182e7cfd67e7a353932dda53d811
tree919233a88ce3515e63885cab00726c1cde154c34
parentf4e3f126df0a577903ec043dbcbe38e2863ce3d6
Fixed fstrim(8) applied to partitions

The new way goes via /sys/dev/block/MAJOR:MINOR to map partitions to
devices and get discard parameters of the parent device. It also ensures
that the partition is aligned to the discard block size.

Contributed by Richard W.M. Jones
libntfs-3g/ioctl.c