aboutsummaryrefslogtreecommitdiff
path: root/ext2fs/ext2fs.h
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2017-01-28 14:18:32 +0100
committerRichard Braun <rbraun@sceen.net>2017-01-28 14:18:32 +0100
commitbecc70478c4e09e03e821703ac42fb3be985e97f (patch)
tree604aacabae310aec031bdf40d372b7840e418629 /ext2fs/ext2fs.h
parentcef4f1daf97826511893815a2b6a891d7ccecac7 (diff)
parent05c364c6588fb8e61cf075863919a40250172ba0 (diff)
downloadhurd-becc70478c4e09e03e821703ac42fb3be985e97f.tar.gz
hurd-becc70478c4e09e03e821703ac42fb3be985e97f.tar.bz2
hurd-becc70478c4e09e03e821703ac42fb3be985e97f.zip
Merge remote-tracking branch 'remotes/darnassus/ext2fs-xattrs'
Diffstat (limited to 'ext2fs/ext2fs.h')
-rw-r--r--ext2fs/ext2fs.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/ext2fs/ext2fs.h b/ext2fs/ext2fs.h
index a3d22b28..2104dba3 100644
--- a/ext2fs/ext2fs.h
+++ b/ext2fs/ext2fs.h
@@ -17,6 +17,9 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
+#ifndef _EXT2FS_H
+#define _EXT2FS_H
+
#include <mach.h>
#include <hurd.h>
#include <hurd/ports.h>
@@ -575,3 +578,23 @@ extern void _ext2_panic (const char *, const char *, ...)
extern void ext2_warning (const char *, ...)
__attribute__ ((format (printf, 1, 2)));
+
+/* ---------------------------------------------------------------- */
+/* xattr.c */
+
+error_t ext2_list_xattr (struct node *np, char *buffer, size_t *len);
+error_t ext2_get_xattr (struct node *np, const char *name, char *value, size_t *len);
+error_t ext2_set_xattr (struct node *np, const char *name, const char *value, size_t len, int flags);
+error_t ext2_free_xattr_block (struct node *np);
+
+/* Use extended attribute-based translator records.
+ *
+ * This flag allows users to opt-in to the use of extended attributes
+ * for storing translator records. We will make this the default once
+ * we feel confident that the implementation is fine.
+ *
+ * XXX: Remove this in Hurd 1.0 (or 0.10, or whatever follows 0.9).
+ */
+int use_xattr_translator_records;
+
+#endif