summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/gf-dirent.h
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2010-02-25 15:37:48 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-03-04 03:12:22 -0800
commit508075b079d731f7aa5fa36d7295fceeef2c3c1d (patch)
treef987692bd1f6e14a3d2b9bcd9652d1df0c5970af /libglusterfs/src/gf-dirent.h
parent9fe5c6d391fd159fe27022ab806408831ed5b27f (diff)
core: New function: gf_dirent_for_namelen
Given the length of a name that needs to be stored in d_name, the new function allocates enough space for a gf_dirent_t and returns a ref. Signed-off-by: Shehjar Tikoo <shehjart@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 597 (miscellaneous fixes for xlators to work well with NFS xlator) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=597
Diffstat (limited to 'libglusterfs/src/gf-dirent.h')
-rw-r--r--libglusterfs/src/gf-dirent.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/libglusterfs/src/gf-dirent.h b/libglusterfs/src/gf-dirent.h
index 2c10f8fbc19..0e13c0325f0 100644
--- a/libglusterfs/src/gf-dirent.h
+++ b/libglusterfs/src/gf-dirent.h
@@ -57,5 +57,6 @@ gf_dirent_t *gf_dirent_for_name (const char *name);
void gf_dirent_free (gf_dirent_t *entries);
int gf_dirent_serialize (gf_dirent_t *entries, char *buf, size_t size);
int gf_dirent_unserialize (gf_dirent_t *entries, const char *buf, size_t size);
+gf_dirent_t * gf_dirent_for_namelen (int len);
#endif /* _GF_DIRENT_H */