From: Jean-Pierre A. <jp...@us...> - 2009-04-03 14:16:45
|
Update of /cvsroot/ntfs-3g/ntfs-3g/include/ntfs-3g In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv19601/ntfs-3g/include/ntfs-3g Modified Files: Tag: PERMISSION_HANDLING_BRANCH attrib.h compress.h runlist.h Log Message: Extended transparent compression support to sequential writing to compressed files Index: compress.h =================================================================== RCS file: /cvsroot/ntfs-3g/ntfs-3g/include/ntfs-3g/compress.h,v retrieving revision 1.1.1.1 retrieving revision 1.1.1.1.2.1 diff -u -d -r1.1.1.1 -r1.1.1.1.2.1 --- compress.h 30 Oct 2006 22:32:45 -0000 1.1.1.1 +++ compress.h 3 Apr 2009 13:33:24 -0000 1.1.1.1.2.1 @@ -29,5 +29,11 @@ extern s64 ntfs_compressed_attr_pread(ntfs_attr *na, s64 pos, s64 count, void *b); +extern s64 ntfs_compressed_pwrite(ntfs_attr *na, runlist_element *brl, s64 wpos, + s64 offs, s64 to_write, s64 rounded, + const void *b, int compressed_part); + +extern int ntfs_compressed_close(ntfs_attr *na, runlist_element *brl, s64 offs); + #endif /* defined _NTFS_COMPRESS_H */ Index: runlist.h =================================================================== RCS file: /cvsroot/ntfs-3g/ntfs-3g/include/ntfs-3g/runlist.h,v retrieving revision 1.1.1.1.2.2 retrieving revision 1.1.1.1.2.3 diff -u -d -r1.1.1.1.2.2 -r1.1.1.1.2.3 --- runlist.h 13 Feb 2009 10:37:46 -0000 1.1.1.1.2.2 +++ runlist.h 3 Apr 2009 13:33:24 -0000 1.1.1.1.2.3 @@ -49,6 +49,8 @@ s64 length; /* Run length in clusters. */ }; +extern runlist_element *ntfs_rl_extend(runlist_element *rl, int more_entries); + extern LCN ntfs_rl_vcn_to_lcn(const runlist_element *rl, const VCN vcn); extern s64 ntfs_rl_pread(const ntfs_volume *vol, const runlist_element *rl, Index: attrib.h =================================================================== RCS file: /cvsroot/ntfs-3g/ntfs-3g/include/ntfs-3g/attrib.h,v retrieving revision 1.2.2.9 retrieving revision 1.2.2.10 diff -u -d -r1.2.2.9 -r1.2.2.10 --- attrib.h 27 Mar 2009 09:09:59 -0000 1.2.2.9 +++ attrib.h 3 Apr 2009 13:33:24 -0000 1.2.2.10 @@ -175,6 +175,7 @@ runlist_element *rl; ntfs_inode *ni; ATTR_TYPES type; + ATTR_FLAGS data_flags; ntfschar *name; u32 name_len; unsigned long state; @@ -246,7 +247,8 @@ } attr_val; extern void ntfs_attr_init(ntfs_attr *na, const BOOL non_resident, - const BOOL compressed, const BOOL encrypted, const BOOL sparse, + const ATTR_FLAGS data_flags, const BOOL encrypted, + const BOOL sparse, const s64 allocated_size, const s64 data_size, const s64 initialized_size, const s64 compressed_size, const u8 compression_unit); @@ -261,6 +263,7 @@ void *b); extern s64 ntfs_attr_pwrite(ntfs_attr *na, const s64 pos, s64 count, const void *b); +extern int ntfs_attr_pclose(ntfs_attr *na); extern void *ntfs_attr_readall(ntfs_inode *ni, const ATTR_TYPES type, ntfschar *name, u32 name_len, s64 *data_size); @@ -295,6 +298,8 @@ extern int ntfs_attr_add(ntfs_inode *ni, ATTR_TYPES type, ntfschar *name, u8 name_len, u8 *val, s64 size); +extern int ntfs_attr_set_flags(ntfs_inode *ni, ATTR_TYPES type, + ntfschar *name, u8 name_len, ATTR_FLAGS flags, ATTR_FLAGS mask); extern int ntfs_attr_rm(ntfs_attr *na); extern int ntfs_attr_record_resize(MFT_RECORD *m, ATTR_RECORD *a, u32 new_size); |