From e3942babf00fe74dd3c3fc8502482967fbdb9ca5 Mon Sep 17 00:00:00 2001 From: Soumya Koduri Date: Wed, 18 Sep 2019 16:32:08 +0530 Subject: gfapi: 'glfs_h_creat_open' - new API to create handle and open fd Right now we have two separate APIs, one - 'glfs_h_creat_handle' to create handle & another - 'glfs_h_open' to create a glfd to return to application Having two separate routines can result in access errors while trying to create and write into a read-only file. Since a fd is opened even during file/directory creation, introducing a new API to make these two operations atomic i.e, which can create both handle & fd and pass them to application This is backport of below mainline patch - - https://review.gluster.org/#/c/glusterfs/+/23448/ - bz#1753569 release-6: - https://review.gluster.org/#/c/glusterfs/+/23491/ Change-Id: Ibf513fcfcdad175f4d7eb6fa7a61b8feec6d33b5 fixes: bz#1756002 Signed-off-by: Soumya Koduri --- api/src/gfapi.map | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'api/src/gfapi.map') diff --git a/api/src/gfapi.map b/api/src/gfapi.map index ca20d6407e7..228ac47c084 100644 --- a/api/src/gfapi.map +++ b/api/src/gfapi.map @@ -272,7 +272,12 @@ GFAPI_PRIVATE_6.1 { glfs_setfspid; } GFAPI_6.0; +GFAPI_6.6 { + global: + glfs_h_creat_open; +} GFAPI_PRIVATE_6.1; + GFAPI_7.0 { global: glfs_set_statedump_path; -} GFAPI_PRIVATE_6.1; +} GFAPI_6.6; -- cgit