handle.h   handle.h 
skipping to change at line 31 skipping to change at line 31
#ifdef __cplusplus #ifdef __cplusplus
extern "C" { extern "C" {
#endif #endif
struct fsdmidata; struct fsdmidata;
struct attrlist_cursor; struct attrlist_cursor;
struct parent; struct parent;
extern int path_to_handle (char *__path, void **__hanp, size_t *__hlen); extern int path_to_handle (char *__path, void **__hanp, size_t *__hlen);
extern int path_to_fshandle (char *__path, void **__fshanp, size_t *__fshl en); extern int path_to_fshandle (char *__path, void **__fshanp, size_t *__fshl en);
extern int fd_to_handle (int fd, void **hanp, size_t *hlen);
extern int handle_to_fshandle (void *__hanp, size_t __hlen, void **__fshan p, extern int handle_to_fshandle (void *__hanp, size_t __hlen, void **__fshan p,
size_t *__fshlen); size_t *__fshlen);
extern void free_handle (void *__hanp, size_t __hlen); extern void free_handle (void *__hanp, size_t __hlen);
extern int open_by_fshandle (void *__fshanp, size_t __fshlen, int __rw); extern int open_by_fshandle (void *__fshanp, size_t __fshlen, int __rw);
extern int open_by_handle (void *__hanp, size_t __hlen, int __rw); extern int open_by_handle (void *__hanp, size_t __hlen, int __rw);
extern int readlink_by_handle (void *__hanp, size_t __hlen, void *__buf, extern int readlink_by_handle (void *__hanp, size_t __hlen, void *__buf,
size_t __bs); size_t __bs);
extern int attr_multi_by_handle (void *__hanp, size_t __hlen, void *__buf, extern int attr_multi_by_handle (void *__hanp, size_t __hlen, void *__buf,
int __rtrvcnt, int __flags); int __rtrvcnt, int __flags);
extern int attr_list_by_handle (void *__hanp, size_t __hlen, void *__buf, extern int attr_list_by_handle (void *__hanp, size_t __hlen, void *__buf,
 End of changes. 1 change blocks. 
0 lines changed or deleted 1 lines changed or added


 libxfs.h   libxfs.h 
skipping to change at line 782 skipping to change at line 782
/* CRC wrappers */ /* CRC wrappers */
extern uint32_t crc32_le(uint32_t crc, unsigned char const *p, size_t len); extern uint32_t crc32_le(uint32_t crc, unsigned char const *p, size_t len);
extern uint32_t crc32c_le(uint32_t crc, unsigned char const *p, size_t len) ; extern uint32_t crc32c_le(uint32_t crc, unsigned char const *p, size_t len) ;
#define crc32(c,p,l) crc32_le((c),(unsigned char const *)(p),(l)) #define crc32(c,p,l) crc32_le((c),(unsigned char const *)(p),(l))
#define crc32c(c,p,l) crc32c_le((c),(unsigned char const *)(p),(l)) #define crc32c(c,p,l) crc32c_le((c),(unsigned char const *)(p),(l))
#include <xfs/xfs_cksum.h> #include <xfs/xfs_cksum.h>
#define libxfs_verify_cksum xfs_verify_cksum
static inline int static inline int
xfs_buf_verify_cksum(struct xfs_buf *bp, unsigned long cksum_offset) xfs_buf_verify_cksum(struct xfs_buf *bp, unsigned long cksum_offset)
{ {
return xfs_verify_cksum(bp->b_addr, BBTOB(bp->b_length), return xfs_verify_cksum(bp->b_addr, BBTOB(bp->b_length),
cksum_offset); cksum_offset);
} }
static inline void static inline void
xfs_buf_update_cksum(struct xfs_buf *bp, unsigned long cksum_offset) xfs_buf_update_cksum(struct xfs_buf *bp, unsigned long cksum_offset)
{ {
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added


 xfs_da_format.h   xfs_da_format.h 
skipping to change at line 564 skipping to change at line 564
} }
static inline __uint8_t static inline __uint8_t
xfs_dir3_dirent_get_ftype( xfs_dir3_dirent_get_ftype(
struct xfs_mount *mp, struct xfs_mount *mp,
struct xfs_dir2_data_entry *dep) struct xfs_dir2_data_entry *dep)
{ {
if (xfs_sb_version_hasftype(&mp->m_sb)) { if (xfs_sb_version_hasftype(&mp->m_sb)) {
__uint8_t type = dep->name[dep->namelen]; __uint8_t type = dep->name[dep->namelen];
ASSERT(type < XFS_DIR3_FT_MAX);
if (type < XFS_DIR3_FT_MAX) if (type < XFS_DIR3_FT_MAX)
return type; return type;
} }
return XFS_DIR3_FT_UNKNOWN; return XFS_DIR3_FT_UNKNOWN;
} }
static inline void static inline void
xfs_dir3_dirent_put_ftype( xfs_dir3_dirent_put_ftype(
struct xfs_mount *mp, struct xfs_mount *mp,
 End of changes. 1 change blocks. 
1 lines changed or deleted 0 lines changed or added


 xfs_dir2.h   xfs_dir2.h 
skipping to change at line 103 skipping to change at line 103
extern void xfs_dir2_data_make_free(struct xfs_trans *tp, struct xfs_buf *b p, extern void xfs_dir2_data_make_free(struct xfs_trans *tp, struct xfs_buf *b p,
xfs_dir2_data_aoff_t offset, xfs_dir2_data_aoff_t len, xfs_dir2_data_aoff_t offset, xfs_dir2_data_aoff_t len,
int *needlogp, int *needscanp); int *needlogp, int *needscanp);
extern void xfs_dir2_data_use_free(struct xfs_trans *tp, struct xfs_buf *bp , extern void xfs_dir2_data_use_free(struct xfs_trans *tp, struct xfs_buf *bp ,
struct xfs_dir2_data_unused *dup, xfs_dir2_data_aoff_t offse t, struct xfs_dir2_data_unused *dup, xfs_dir2_data_aoff_t offse t,
xfs_dir2_data_aoff_t len, int *needlogp, int *needscanp); xfs_dir2_data_aoff_t len, int *needlogp, int *needscanp);
extern struct xfs_dir2_data_free *xfs_dir2_data_freefind( extern struct xfs_dir2_data_free *xfs_dir2_data_freefind(
struct xfs_dir2_data_hdr *hdr, struct xfs_dir2_data_unused * dup); struct xfs_dir2_data_hdr *hdr, struct xfs_dir2_data_unused * dup);
extern int xfs_dir_ino_validate(struct xfs_mount *mp, xfs_ino_t ino);
extern const struct xfs_buf_ops xfs_dir3_block_buf_ops; extern const struct xfs_buf_ops xfs_dir3_block_buf_ops;
extern const struct xfs_buf_ops xfs_dir3_leafn_buf_ops; extern const struct xfs_buf_ops xfs_dir3_leafn_buf_ops;
extern const struct xfs_buf_ops xfs_dir3_leaf1_buf_ops; extern const struct xfs_buf_ops xfs_dir3_leaf1_buf_ops;
extern const struct xfs_buf_ops xfs_dir3_free_buf_ops; extern const struct xfs_buf_ops xfs_dir3_free_buf_ops;
extern const struct xfs_buf_ops xfs_dir3_data_buf_ops; extern const struct xfs_buf_ops xfs_dir3_data_buf_ops;
#endif /* __XFS_DIR2_H__ */ #endif /* __XFS_DIR2_H__ */
 End of changes. 1 change blocks. 
0 lines changed or deleted 2 lines changed or added


 xfs_types.h   xfs_types.h 
skipping to change at line 102 skipping to change at line 102
* Max values for extlen, extnum, aextnum. * Max values for extlen, extnum, aextnum.
*/ */
#define MAXEXTLEN ((xfs_extlen_t)0x001fffff) /* 21 bits * / #define MAXEXTLEN ((xfs_extlen_t)0x001fffff) /* 21 bits * /
#define MAXEXTNUM ((xfs_extnum_t)0x7fffffff) /* signed in t */ #define MAXEXTNUM ((xfs_extnum_t)0x7fffffff) /* signed in t */
#define MAXAEXTNUM ((xfs_aextnum_t)0x7fff) /* signed sh ort */ #define MAXAEXTNUM ((xfs_aextnum_t)0x7fff) /* signed sh ort */
/* /*
* Minimum and maximum blocksize and sectorsize. * Minimum and maximum blocksize and sectorsize.
* The blocksize upper limit is pretty much arbitrary. * The blocksize upper limit is pretty much arbitrary.
* The sectorsize upper limit is due to sizeof(sb_sectsize). * The sectorsize upper limit is due to sizeof(sb_sectsize).
* CRC enable filesystems use 512 byte inodes, meaning 512 byte block sizes
* cannot be used.
*/ */
#define XFS_MIN_BLOCKSIZE_LOG 9 /* i.e. 512 bytes */ #define XFS_MIN_BLOCKSIZE_LOG 9 /* i.e. 512 bytes */
#define XFS_MAX_BLOCKSIZE_LOG 16 /* i.e. 65536 bytes */ #define XFS_MAX_BLOCKSIZE_LOG 16 /* i.e. 65536 bytes */
#define XFS_MIN_BLOCKSIZE (1 << XFS_MIN_BLOCKSIZE_LOG) #define XFS_MIN_BLOCKSIZE (1 << XFS_MIN_BLOCKSIZE_LOG)
#define XFS_MAX_BLOCKSIZE (1 << XFS_MAX_BLOCKSIZE_LOG) #define XFS_MAX_BLOCKSIZE (1 << XFS_MAX_BLOCKSIZE_LOG)
#define XFS_MIN_CRC_BLOCKSIZE (1 << (XFS_MIN_BLOCKSIZE_LOG + 1))
#define XFS_MIN_SECTORSIZE_LOG 9 /* i.e. 512 bytes */ #define XFS_MIN_SECTORSIZE_LOG 9 /* i.e. 512 bytes */
#define XFS_MAX_SECTORSIZE_LOG 15 /* i.e. 32768 bytes */ #define XFS_MAX_SECTORSIZE_LOG 15 /* i.e. 32768 bytes */
#define XFS_MIN_SECTORSIZE (1 << XFS_MIN_SECTORSIZE_LOG) #define XFS_MIN_SECTORSIZE (1 << XFS_MIN_SECTORSIZE_LOG)
#define XFS_MAX_SECTORSIZE (1 << XFS_MAX_SECTORSIZE_LOG) #define XFS_MAX_SECTORSIZE (1 << XFS_MAX_SECTORSIZE_LOG)
/* /*
* Inode fork identifiers. * Inode fork identifiers.
*/ */
#define XFS_DATA_FORK 0 #define XFS_DATA_FORK 0
#define XFS_ATTR_FORK 1 #define XFS_ATTR_FORK 1
 End of changes. 2 change blocks. 
0 lines changed or deleted 3 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/