Changes by: flatcap
Update of /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv3077
Modified Files:
ntfsrm.c
Log Message:
root remove got size wrong
a few typos
Index: ntfsrm.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/ntfsrm.c,v
retrieving revision 1.41
retrieving revision 1.42
diff -u -p -r1.41 -r1.42
--- ntfsrm.c 13 Jul 2005 22:55:01 -0000 1.41
+++ ntfsrm.c 18 Jul 2005 16:10:05 -0000 1.42
@@ -273,7 +273,7 @@ static void ntfs_binary_print (u8 num, B
/**
* ntfsinfo_time_to_str
*/
-static const char *ntfsinfo_time_to_str(const s64 sle_ntfs_clock)
+static const char * ntfsinfo_time_to_str(const s64 sle_ntfs_clock)
{
time_t unix_clock = ntfs2utc(sle64_to_cpu(sle_ntfs_clock));
if (sle_ntfs_clock == 0)
@@ -317,7 +317,7 @@ static void ntfs_inode_dir_map (ntfs_ino
/**
* ntfs_inode_open2
*/
-static ntfs_inode *ntfs_inode_open2 (ntfs_volume *vol, const MFT_REF mref)
+static ntfs_inode * ntfs_inode_open2 (ntfs_volume *vol, const MFT_REF mref)
{
ntfs_inode *ino = NULL;
struct ntfs_dir *dir;
@@ -431,7 +431,7 @@ static int ntfs_bmp_commit (struct ntfs_
printf ("\ti size = %lld\n", bmp->attr->initialized_size);
#endif
- //printf ("commit bmp inode %lld, 0x%02X (%sresident)\n", bmp->attr->ni->mft_no, bmp->attr->type, NAttrNonResident (bmp->attr) ? "non-" : "");
+ printf ("commit bmp inode %lld, 0x%02X (%sresident)\n", bmp->attr->ni->mft_no, bmp->attr->type, NAttrNonResident (bmp->attr) ? "non-" : "");
if (NAttrNonResident (bmp->attr)) {
cs = bmp->vol->cluster_size;
@@ -2643,8 +2643,6 @@ static BOOL ntfs_dt_root_remove (struct
del->data = realloc (del->data, del->data_len);
del->header = (INDEX_HEADER*) (del->data + 0x10);
- del->header->index_length -= del_len;
- del->header->allocated_size -= del_len;
//utils_dump_mem (del->data, 0, del->data_len, DM_GREEN | DM_RED);
@@ -4834,8 +4832,12 @@ static int ntfs_file_remove (ntfs_volume
//utils_dump_mem (par->data, 0, par->data_len, DM_BLUE|DM_GREEN|DM_INDENT);
- if (par)
- file = &par->children[par_num]->key.file_name; printf ("\tpar name: "); ntfs_name_print (file->file_name, file->file_name_length); printf ("\n");
+ if (par) {
+ file = &par->children[par_num]->key.file_name;
+ printf ("\tpar name: ");
+ ntfs_name_print (file->file_name, file->file_name_length);
+ printf ("\n");
+ }
if (par == NULL) {
// unhook everything
@@ -5011,6 +5013,7 @@ static int ntfs_file_remove2 (ntfs_volum
if (1) ntfs_file_remove (vol, dt, dt_num); // remove name from index
if (1) utils_volume_commit (vol);
+ if (1) utils_volume_commit (vol);
if (0) utils_volume_rollback (vol);
|