AC_DEFINE(HAVE_DMU_TX_MARK_NETFREE, 1,
[Have dmu_tx_mark_netfree])
])
+ dnl #
+ dnl # ZFS 0.7.10 changes timestruc_t to inode_timespec_t
+ dnl #
+ LB_CHECK_COMPILE([if SPL has 'inode_timespec_t'],
+ zfs_have_inode_timespec, [
+ #include <sys/fs/zfs.h>
+ ],[
+ inode_timespec_t now;
+ gethrestime(&now);
+ ],[
+ AC_DEFINE(HAVE_ZFS_INODE_TIMESPEC, 1,
+ [Have inode_timespec_t])
+ ])
])
AS_IF([test "x$enable_zfs" = xyes], [
#define dmu_tx_mark_netfree(tx)
#endif
+#ifndef HAVE_ZFS_INODE_TIMESPEC
+#define inode_timespec_t timestruc_t
+#endif
+
#endif /* _OSD_INTERNAL_H */
struct lu_attr *la, uint64_t parent,
nvlist_t *xattr)
{
- sa_bulk_attr_t *bulk = osd_oti_get(env)->oti_attr_bulk;
- struct osa_attr *osa = &osd_oti_get(env)->oti_osa;
- uint64_t gen;
- uint64_t crtime[2];
- timestruc_t now;
- int cnt;
- int rc;
+ sa_bulk_attr_t *bulk = osd_oti_get(env)->oti_attr_bulk;
+ struct osa_attr *osa = &osd_oti_get(env)->oti_osa;
+ uint64_t gen;
+ uint64_t crtime[2];
+ inode_timespec_t now;
+ int cnt;
+ int rc;
char *dxattr = NULL;
size_t sa_size;
int __osd_sa_attr_init(const struct lu_env *env, struct osd_object *obj,
struct osd_thandle *oh)
{
- sa_bulk_attr_t *bulk = osd_oti_get(env)->oti_attr_bulk;
- struct osa_attr *osa = &osd_oti_get(env)->oti_osa;
+ sa_bulk_attr_t *bulk = osd_oti_get(env)->oti_attr_bulk;
+ struct osa_attr *osa = &osd_oti_get(env)->oti_osa;
struct lu_buf *lb = &osd_oti_get(env)->oti_xattr_lbuf;
struct osd_device *osd = osd_obj2dev(obj);
uint64_t crtime[2], gen;
- timestruc_t now;
+ inode_timespec_t now;
size_t size;
int rc, cnt;