On Tue, 16 Oct 2012, Lukas Czerner wrote:
Date: Tue, 16 Oct 2012 11:34:36 +0200
From: Lukas Czerner lczer...@redhat.com
To: linux-btrfs@vger.kernel.org
Cc: jba...@fusionio.com, Lukas Czerner lczer...@redhat.com
Subject: [PATCH] btrfs: Return EINVAL when length to trim is less than FSB
when length to trim is less than FSB
Currently if len argument in btrfs_ioctl_fitrim() is smaller than
one FSB we will continue and finally return 0 bytes discarded.
However if the length to discard is smaller then file system block
we should really return EINVAL.
ping
This patch has
Currently if len argument in btrfs_ioctl_fitrim() is smaller than
one FSB we will continue and finally return 0 bytes discarded.
However if the length to discard is smaller then file system block
we should really return EINVAL.
Signed-off-by: Lukas Czerner lczer...@redhat.com
---