summaryrefslogtreecommitdiff
path: root/lib/ext2fs/ext2fs.h
diff options
context:
space:
mode:
authorTheodore Ts'o <tytso@mit.edu>2001-07-02 11:54:09 -0400
committerTheodore Ts'o <tytso@mit.edu>2001-07-02 11:54:09 -0400
commit342d847db355d81299218e07a1e58ece82080a04 (patch)
treed9d1ebd757a7caf7066a3d5e119691a615b27d18 /lib/ext2fs/ext2fs.h
parent636a954a308aec91cf644f566d3e8a794a5dd8cb (diff)
downloade2fsprogs-342d847db355d81299218e07a1e58ece82080a04.tar.gz
Add initial support for extended attribute blocks
Diffstat (limited to 'lib/ext2fs/ext2fs.h')
-rw-r--r--lib/ext2fs/ext2fs.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ext2fs/ext2fs.h b/lib/ext2fs/ext2fs.h
index f89ccc7e..2b23e04a 100644
--- a/lib/ext2fs/ext2fs.h
+++ b/lib/ext2fs/ext2fs.h
@@ -402,7 +402,8 @@ typedef struct ext2_icount *ext2_icount_t;
*/
#define EXT2_LIB_FEATURE_COMPAT_SUPP (EXT2_FEATURE_COMPAT_DIR_PREALLOC|\
EXT2_FEATURE_COMPAT_IMAGIC_INODES|\
- EXT3_FEATURE_COMPAT_HAS_JOURNAL)
+ EXT3_FEATURE_COMPAT_HAS_JOURNAL|\
+ EXT2_FEATURE_COMPAT_EXT_ATTR)
/* This #ifdef is temporary until compression is fully supported */
#ifdef ENABLE_COMPRESSION
@@ -607,6 +608,10 @@ extern errcode_t ext2fs_dup_handle(ext2_filsys src, ext2_filsys *dest);
/* expanddir.c */
extern errcode_t ext2fs_expand_dir(ext2_filsys fs, ext2_ino_t dir);
+/* ext_attr.c */
+void ext2fs_swap_ext_attr(ext2_filsys fs, char *to, char *from);
+extern errcode_t ext2fs_read_ext_attr(ext2_filsys fs, blk_t block, void *buf);
+extern errcode_t ext2fs_write_ext_attr(ext2_filsys fs, blk_t block, void *buf);
/* fileio.c */
extern errcode_t ext2fs_file_open(ext2_filsys fs, ext2_ino_t ino,
int flags, ext2_file_t *ret);