"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libntfs-3g/inode.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.

inode.c  (ntfs-3g_ntfsprogs-2016.2.22.tgz):inode.c  (ntfs-3g_ntfsprogs-2017.3.23.tgz)
skipping to change at line 39 skipping to change at line 39
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
#include <stdlib.h> #include <stdlib.h>
#endif #endif
#ifdef HAVE_STRING_H #ifdef HAVE_STRING_H
#include <string.h> #include <string.h>
#endif #endif
#ifdef HAVE_ERRNO_H #ifdef HAVE_ERRNO_H
#include <errno.h> #include <errno.h>
#endif #endif
#ifdef HAVE_SETXATTR
#include <sys/xattr.h>
#endif
#include "param.h" #include "param.h"
#include "compat.h" #include "compat.h"
#include "types.h" #include "types.h"
#include "volume.h" #include "volume.h"
#include "cache.h" #include "cache.h"
#include "inode.h" #include "inode.h"
#include "attrib.h" #include "attrib.h"
#include "debug.h" #include "debug.h"
#include "mft.h" #include "mft.h"
#include "attrlist.h" #include "attrlist.h"
#include "runlist.h" #include "runlist.h"
#include "lcnalloc.h" #include "lcnalloc.h"
#include "index.h" #include "index.h"
#include "dir.h" #include "dir.h"
#include "ntfstime.h" #include "ntfstime.h"
#include "logging.h" #include "logging.h"
#include "misc.h" #include "misc.h"
#include "xattrs.h"
ntfs_inode *ntfs_inode_base(ntfs_inode *ni) ntfs_inode *ntfs_inode_base(ntfs_inode *ni)
{ {
if (ni->nr_extents == -1) if (ni->nr_extents == -1)
return ni->base_ni; return ni->base_ni;
return ni; return ni;
} }
/** /**
* ntfs_inode_mark_dirty - set the inode (and its base inode if it exists) dirty * ntfs_inode_mark_dirty - set the inode (and its base inode if it exists) dirty
skipping to change at line 1449 skipping to change at line 1447
if (ustr && ntfs_names_are_equal(ustr, len, if (ustr && ntfs_names_are_equal(ustr, len,
(ntfschar *)((u8 *)attr + le16_to_cpu(attr->name_offset)) , (ntfschar *)((u8 *)attr + le16_to_cpu(attr->name_offset)) ,
attr->name_length, 0, NULL, 0)) attr->name_length, 0, NULL, 0))
ret = 1; ret = 1;
ntfs_ucsfree(ustr); ntfs_ucsfree(ustr);
return ret; return ret;
} }
#ifdef HAVE_SETXATTR /* extended attributes interface required */
/* /*
* Get high precision NTFS times * Get high precision NTFS times
* *
* They are returned in following order : create, update, access, change * They are returned in following order : create, update, access, change
* provided they fit in requested size. * provided they fit in requested size.
* *
* Returns the modified size if successfull (or 32 if buffer size is null) * Returns the modified size if successfull (or 32 if buffer size is null)
* -errno if failed * -errno if failed
*/ */
skipping to change at line 1607 skipping to change at line 1603
} }
ntfs_attr_put_search_ctx(ctx); ntfs_attr_put_search_ctx(ctx);
} }
} else } else
if (size < 8) if (size < 8)
errno = ERANGE; errno = ERANGE;
else else
errno = EEXIST; errno = EEXIST;
return (ret); return (ret);
} }
#endif /* HAVE_SETXATTR */
 End of changes. 4 change blocks. 
5 lines changed or deleted 1 lines changed or added

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