From 5a2af2fd06356f6fc79d591c352caffd4c511c9e 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 Change-Id: Ibf513fcfcdad175f4d7eb6fa7a61b8feec6d33b5 fixes: bz#1755785 Signed-off-by: Soumya Koduri --- api/src/gfapi.aliases | 1 + 1 file changed, 1 insertion(+) (limited to 'api/src/gfapi.aliases') diff --git a/api/src/gfapi.aliases b/api/src/gfapi.aliases index 09c0fd8f648..51ac2df6ae8 100644 --- a/api/src/gfapi.aliases +++ b/api/src/gfapi.aliases @@ -195,3 +195,4 @@ _pub_glfs_zerofill_async _glfs_zerofill_async$GFAPI_6.0 _pub_glfs_copy_file_range _glfs_copy_file_range$GFAPI_6.0 _pub_glfs_fsetattr _glfs_fsetattr$GFAPI_6.0 _pub_glfs_setattr _glfs_setattr$GFAPI_6.0 +_pub_glfs_h_creat_open _glfs_h_creat_open@GFAPI_6.6 -- cgit