diff options
author | Michael Hanselmann <public@hansmi.ch> | 2018-07-27 17:00:27 +0200 |
---|---|---|
committer | Michael Hanselmann <public@hansmi.ch> | 2018-07-27 19:53:14 +0200 |
commit | 4991e72186e64152ea32286a8e2e73ebf651f30f (patch) | |
tree | ebb0258eb9e67d10ec2e3d25fc80786b4de2c782 /gluster/gfapi/api.py | |
parent | d5e4a0362a08ca3c0e7a33ea8caafccb22b906b2 (diff) |
Support mknod API
Gluster supports the mknod(2) API to create special files such as
character and block devices. Add it to the "gfapi.Volume" class.
Change-Id: Ie62245441997111b0cf6e44b2a14a1ad7b6d7d56
Signed-off-by: Michael Hanselmann <public@hansmi.ch>
Diffstat (limited to 'gluster/gfapi/api.py')
-rw-r--r-- | gluster/gfapi/api.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gluster/gfapi/api.py b/gluster/gfapi/api.py index 971e98c..e4f0b14 100644 --- a/gluster/gfapi/api.py +++ b/gluster/gfapi/api.py @@ -515,3 +515,9 @@ glfs_get_volumeid = gfapi_prototype('glfs_get_volumeid', ctypes.c_int, ctypes.c_void_p, ctypes.c_char_p, ctypes.c_size_t) + +glfs_mknod = gfapi_prototype('glfs_mknod', ctypes.c_int, + ctypes.c_void_p, + ctypes.c_char_p, + ctypes.c_uint32, + ctypes.c_uint32) |