"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "ntfsprogs/ntfscluster.c" between
ntfs-3g_ntfsprogs-2016.2.22.tgz and ntfs-3g_ntfsprogs-2017.3.23.tgz

About: NTFS-3G is a read-write NTFS driver for Linux and other operating systems. It provides safe handling of the Windows XP, Windows Server 2003, Windows 2000, Windows Vista, Windows Server 2008, Windows 7 and Windows 8 NTFS file systems.

ntfscluster.c  (ntfs-3g_ntfsprogs-2016.2.22.tgz):ntfscluster.c  (ntfs-3g_ntfsprogs-2017.3.23.tgz)
skipping to change at line 488 skipping to change at line 488
* Return: 0 Success, the program worked * Return: 0 Success, the program worked
* 1 Error, something went wrong * 1 Error, something went wrong
*/ */
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
ntfs_volume *vol; ntfs_volume *vol;
ntfs_inode *ino = NULL; ntfs_inode *ino = NULL;
struct match m; struct match m;
int res; int res;
int result = 1; int result = 1;
#ifdef HAVE_WINDOWS_H
char *unix_name;
#endif
ntfs_log_set_handler(ntfs_log_handler_outerr); ntfs_log_set_handler(ntfs_log_handler_outerr);
res = parse_options(argc, argv); res = parse_options(argc, argv);
if (res >= 0) if (res >= 0)
return (res); return (res);
utils_set_locale(); utils_set_locale();
vol = utils_mount_volume(opts.device, NTFS_MNT_RDONLY | vol = utils_mount_volume(opts.device, NTFS_MNT_RDONLY |
skipping to change at line 523 skipping to change at line 526
break; break;
case act_cluster: case act_cluster:
if (opts.range_begin == opts.range_end) if (opts.range_begin == opts.range_end)
ntfs_log_quiet("Searching for cluster %llu\n", ntfs_log_quiet("Searching for cluster %llu\n",
(unsigned long long)opts.range_be gin); (unsigned long long)opts.range_be gin);
else else
ntfs_log_quiet("Searching for cluster range %llu- %llu\n", (unsigned long long)opts.range_begin, (unsigned long long)opts.range_en d); ntfs_log_quiet("Searching for cluster range %llu- %llu\n", (unsigned long long)opts.range_begin, (unsigned long long)opts.range_en d);
result = cluster_find(vol, opts.range_begin, opts.range_e nd, (cluster_cb*)&print_match, NULL); result = cluster_find(vol, opts.range_begin, opts.range_e nd, (cluster_cb*)&print_match, NULL);
break; break;
case act_file: case act_file:
#ifdef HAVE_WINDOWS_H
unix_name = ntfs_utils_unix_path(opts.filename);
ino = 0;
if (unix_name) {
ino = ntfs_pathname_to_inode(vol, NULL,
unix_name);
free(unix_name);
}
#else
ino = ntfs_pathname_to_inode(vol, NULL, opts.filename); ino = ntfs_pathname_to_inode(vol, NULL, opts.filename);
#endif
if (ino) if (ino)
result = dump_file(vol, ino); result = dump_file(vol, ino);
break; break;
case act_inode: case act_inode:
ino = ntfs_inode_open(vol, opts.inode); ino = ntfs_inode_open(vol, opts.inode);
if (ino) { if (ino) {
result = dump_file(vol, ino); result = dump_file(vol, ino);
ntfs_inode_close(ino); ntfs_inode_close(ino);
} else { } else {
ntfs_log_error("Cannot open inode %llu\n", ntfs_log_error("Cannot open inode %llu\n",
 End of changes. 3 change blocks. 
0 lines changed or deleted 13 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS