Changes by: yura
Update of /cvs/linux-ntfs/ntfsprogs/libntfs
In directory delta357.server4you.de:/tmp/cvs-serv13287/libntfs
Modified Files:
volume.c
Log Message:
Set vol->mft_ni->flags. (Szaka)
Index: volume.c
===================================================================
RCS file: /cvs/linux-ntfs/ntfsprogs/libntfs/volume.c,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -p -r1.70 -r1.71
--- volume.c 17 Jul 2006 11:49:52 -0000 1.70
+++ volume.c 27 Jul 2006 18:44:08 -0000 1.71
@@ -2,8 +2,9 @@
* volume.c - NTFS volume handling code. Part of the Linux-NTFS project.
*
* Copyright (c) 2000-2006 Anton Altaparmakov
- * Copyright (c) 2002-2005 Szabolcs Szakacsits
+ * Copyright (c) 2002-2006 Szabolcs Szakacsits
* Copyright (c) 2004-2005 Richard Russon
+ * Copyright (c) 2005-2006 Yura Pakhuchiy
*
* 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
@@ -141,6 +142,7 @@ static int ntfs_mft_load(ntfs_volume *vo
MFT_RECORD *mb = NULL;
ntfs_attr_search_ctx *ctx = NULL;
ATTR_RECORD *a;
+ STANDARD_INFORMATION *std_info;
int eo;
/* Manually setup an ntfs_inode. */
@@ -214,6 +216,11 @@ static int ntfs_mft_load(ntfs_volume *vo
goto io_error_exit;
}
mft_has_no_attr_list:
+ /* Receive attributes from STANDARD_INFORMATION. */
+ std_info = ntfs_attr_readall(vol->mft_ni, AT_STANDARD_INFORMATION,
+ AT_UNNAMED, 0, NULL);
+ vol->mft_ni->flags = std_info->file_attributes;
+
/* We now have a fully setup ntfs inode for $MFT in vol->mft_ni. */
/* Get an ntfs attribute for $MFT/$DATA and set it up, too. */
|