aboutsummaryrefslogtreecommitdiff
path: root/ext2fs/ext2fs.h
diff options
context:
space:
mode:
authorJustus Winter <justus@gnupg.org>2016-10-03 19:23:55 +0200
committerRichard Braun <rbraun@sceen.net>2017-01-06 20:36:09 +0100
commit4818346b39b5a58962d1676ea0bb3a0b954c1fed (patch)
tree3be9303a7822beb42429ed67c3eacfcf7337e7e6 /ext2fs/ext2fs.h
parentc8dac952e7ed2a761da2b061a339d97092e55c01 (diff)
downloadhurd-4818346b39b5a58962d1676ea0bb3a0b954c1fed.tar.gz
hurd-4818346b39b5a58962d1676ea0bb3a0b954c1fed.tar.bz2
hurd-4818346b39b5a58962d1676ea0bb3a0b954c1fed.zip
ext2fs: Require users to opt-in for xattr-based translator records.
* ext2fs/ext2fs.c (use_xattr_translator_records): New variable. (X_XATTR_TRANSLATOR_RECORDS): New macro. (options): New option '--x-xattr-translator-records'. (parse_opt): Handle new option. * ext2fs/ext2fs.h (use_xattr_translator_records): New declaration. * ext2fs/inode.c (diskfs_set_translator): Use new variable. (diskfs_get_translator): Likewise.
Diffstat (limited to 'ext2fs/ext2fs.h')
-rw-r--r--ext2fs/ext2fs.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/ext2fs/ext2fs.h b/ext2fs/ext2fs.h
index 2ee97fd0..2104dba3 100644
--- a/ext2fs/ext2fs.h
+++ b/ext2fs/ext2fs.h
@@ -587,4 +587,14 @@ error_t ext2_get_xattr (struct node *np, const char *name, char *value, size_t *
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