From: Jean-Pierre A. <jp...@us...> - 2009-05-20 14:17:39
|
Update of /cvsroot/ntfs-3g/ntfs-3g/include/ntfs-3g In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv19330/ntfs-3g/include/ntfs-3g Modified Files: Tag: PERMISSION_HANDLING_BRANCH attrib.h volume.h Makefile.am Added Files: Tag: PERMISSION_HANDLING_BRANCH efs.h Log Message: Implemented backup/restoring of encrypted files (by Martin Bene) Index: Makefile.am =================================================================== RCS file: /cvsroot/ntfs-3g/ntfs-3g/include/ntfs-3g/Makefile.am,v retrieving revision 1.3.2.5 retrieving revision 1.3.2.6 diff -u -d -r1.3.2.5 -r1.3.2.6 --- Makefile.am 4 Nov 2008 13:39:02 -0000 1.3.2.5 +++ Makefile.am 20 May 2009 14:17:31 -0000 1.3.2.6 @@ -14,6 +14,7 @@ device.h \ device_io.h \ dir.h \ + efs.h \ endians.h \ index.h \ inode.h \ Index: volume.h =================================================================== RCS file: /cvsroot/ntfs-3g/ntfs-3g/include/ntfs-3g/volume.h,v retrieving revision 1.5.2.12 retrieving revision 1.5.2.13 diff -u -d -r1.5.2.12 -r1.5.2.13 --- volume.h 27 Mar 2009 08:36:07 -0000 1.5.2.12 +++ volume.h 20 May 2009 14:17:31 -0000 1.5.2.13 @@ -228,6 +228,8 @@ s64 free_clusters; /* Track the number of free clusters which greatly improves statfs() performance */ s64 free_mft_records; /* Same for free mft records (see above) */ + BOOL efs_raw; /* volume is mounted for raw access to + efs-encrypted files */ #if CACHE_INODE_SIZE struct CACHE_HEADER *xinode_cache; Index: attrib.h =================================================================== RCS file: /cvsroot/ntfs-3g/ntfs-3g/include/ntfs-3g/attrib.h,v retrieving revision 1.2.2.10 retrieving revision 1.2.2.11 diff -u -d -r1.2.2.10 -r1.2.2.11 --- attrib.h 3 Apr 2009 13:33:24 -0000 1.2.2.10 +++ attrib.h 20 May 2009 14:17:31 -0000 1.2.2.11 @@ -285,7 +285,8 @@ const ATTR_TYPES type); extern int ntfs_attr_can_be_resident(const ntfs_volume *vol, const ATTR_TYPES type); - +int ntfs_attr_make_non_resident(ntfs_attr *na, + ntfs_attr_search_ctx *ctx); extern int ntfs_make_room_for_attr(MFT_RECORD *m, u8 *pos, u32 size); extern int ntfs_resident_attr_record_add(ntfs_inode *ni, ATTR_TYPES type, --- NEW FILE: efs.h --- /* * * Copyright (c) 2009 Martin Bene * * This program/include file is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as published * by the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program/include file is distributed in the hope that it will be * useful, but WITHOUT ANY WARRANTY; without even the implied warranty * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program (in the main directory of the NTFS-3G * distribution in the file COPYING); if not, write to the Free Software * Foundation,Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef EFS_H #define EFS_H int ntfs_get_efs_info(const char *path, char *value, size_t size, ntfs_inode *ni); int ntfs_set_efs_info(const char *path, const char *value, size_t size, int flags, ntfs_inode *ni); int ntfs_efs_fixup_attribute(ntfs_attr_search_ctx *ctx, ntfs_attr *na); #endif /* EFS_H */ |