ext4: notify when discard is not supported
authorLukas Czerner <lczerner@redhat.com>
Thu, 8 Nov 2012 18:28:29 +0000 (13:28 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 8 Nov 2012 18:28:29 +0000 (13:28 -0500)
commit79add3a3f795e688e35d5e703d5a8cfa8ef923ac
tree12805bed5dbe74f9eed349845bd6bb718673ea77
parentd8ec0c396083ef633a065629df1565246dbb2f33
ext4: notify when discard is not supported

Notify user when mounting the file system with -o discard option, but
the device does not support discard. Obviously we do not want to fail
the mount or disable the options, because the underlying device might
change in future even without file system remount.

Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com>
Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/super.c