Changes by: cha0smaster
Update of /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15050/ntfsprogs
Modified Files:
ntfscp.c ntfsinfo.c
Log Message:
- Implement FILE_NAME attributes update in index during inode sync and enable code that set/clean sparse bit. Also add new inode state bit FileNameDirty to indicate that FILE_NAME attributes need update. At least after attribute resize we leave absolutely consist volume.
- Bugfixes to collate.c and index.c.
- Minor formating fixed to ntfscp and ntfsinfo.
Index: ntfscp.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/ntfscp.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -p -r1.16 -r1.17
--- ntfscp.c 6 Apr 2005 15:47:43 -0000 1.16
+++ ntfscp.c 5 Jun 2005 14:55:09 -0000 1.17
@@ -273,7 +273,7 @@ int main (int argc, char *argv[])
return 1;
utils_set_locale();
-
+
/* Set SIGINT handler. */
if (signal(SIGINT, sigint_handler) == SIG_ERR) {
perror("Failed to set SIGINT handler");
@@ -288,7 +288,7 @@ int main (int argc, char *argv[])
perror("ERROR: couldn't mount volume");
return 1;
}
-
+
if ((vol->flags & VOLUME_IS_DIRTY) && (!opts.force))
goto umount;
@@ -382,7 +382,7 @@ int main (int argc, char *argv[])
goto close_dst;
}
}
-
+
Vprintf("Old file size: %lld\n", na->data_size);
if (na->data_size != new_size) {
if (ntfs_attr_truncate(na, new_size)) {
Index: ntfsinfo.c
===================================================================
RCS file: /cvsroot/linux-ntfs/ntfsprogs/ntfsprogs/ntfsinfo.c,v
retrieving revision 1.57
retrieving revision 1.58
diff -u -p -r1.57 -r1.58
--- ntfsinfo.c 4 Jun 2005 15:20:46 -0000 1.57
+++ ntfsinfo.c 5 Jun 2005 14:55:09 -0000 1.58
@@ -1390,9 +1390,12 @@ static void ntfs_dump_attr_index_allocat
printf("\tIndex name:\t\t '%s'\n",index_name);
free(index_name);
} else {
- /* an error occured, errno holds the reason - notify the user */
- fprintf(stderr, "ntfsinfo error: could not parse index name: %s\n",
- strerror(errno));
+ /*
+ * An error occured, errno holds the reason -
+ * notify the user
+ */
+ fprintf(stderr, "ntfsinfo error: could not parse "
+ "index name: %s\n", strerror(errno));
}
} else {
printf("\tIndex name:\t\t unnamed\n");
|