vfs_gpfs: Check for GPFS file system on connect
authorChristof Schmitt <cs@samba.org>
Tue, 18 Sep 2018 00:09:16 +0000 (17:09 -0700)
committerChristof Schmitt <cs@samba.org>
Tue, 18 Sep 2018 22:54:23 +0000 (00:54 +0200)
commit8453c61789b4950e3eda4ff50dd12b233359d09b
tree3c7decd2a6d4b0f556924ce780d378c3c32f703b
parentd0d1eafae9a9232b4a9314d854d56b98098e7f8e
vfs_gpfs: Check for GPFS file system on connect

The vfs_gpfs modules uses GPFS API calls that only succeed when using
the module with the GPFS file system. Add an explicit statfs check for
the file system type on connect, to make it obvious when the file system
is missing or not mounted. The check can be skipped by setting
gpfs:check_fstype to 'no'.

Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
source3/modules/vfs_gpfs.c