mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
For data consistency it is essential that datasets are not modified by z/OS applications during zdsfs access. This is currently ensured by manually setting the device offline in z/OS before mounting it in Linux. This patch improves the usability and data security by making this manual step obsolete. Before opening a dataset zdsfs will obtain an ENQ to mark it as in use for z/OS and release the ENQ when closing the dataset. A timer is set up that pings the z/OSMF REST services with the ENQ to prevent it from a timeout after 10 minutes. The behavior of zdsfs can be configured in a new config file or with new command line options. Signed-off-by: Stefan Haberland <sth@linux.ibm.com> Reviewed-by: Niklas Schnelle <schnelle@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>