mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
Export symbols for the full SA API
Export all the symbols for the system attribute (SA) API. This allows external module to cleanly manipulate the SAs associated with a dnode. Documention for the SA API can be found in the module/zfs/sa.c source. This change also removes the zfs_sa_uprade_pre, and zfs_sa_uprade_post prototypes. The functions themselves were dropped some time ago. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
This commit is contained in:
parent
e8753fb4f0
commit
e45aa45298
@ -128,11 +128,9 @@ typedef struct znode_phys {
|
|||||||
#ifdef _KERNEL
|
#ifdef _KERNEL
|
||||||
int zfs_sa_readlink(struct znode *, uio_t *);
|
int zfs_sa_readlink(struct znode *, uio_t *);
|
||||||
void zfs_sa_symlink(struct znode *, char *link, int len, dmu_tx_t *);
|
void zfs_sa_symlink(struct znode *, char *link, int len, dmu_tx_t *);
|
||||||
void zfs_sa_upgrade(struct sa_handle *, dmu_tx_t *);
|
|
||||||
void zfs_sa_get_scanstamp(struct znode *, xvattr_t *);
|
void zfs_sa_get_scanstamp(struct znode *, xvattr_t *);
|
||||||
void zfs_sa_set_scanstamp(struct znode *, xvattr_t *, dmu_tx_t *);
|
void zfs_sa_set_scanstamp(struct znode *, xvattr_t *, dmu_tx_t *);
|
||||||
void zfs_sa_uprade_pre(struct sa_handle *, void *, dmu_tx_t *);
|
void zfs_sa_upgrade(struct sa_handle *, dmu_tx_t *);
|
||||||
void zfs_sa_upgrade_post(struct sa_handle *, void *, dmu_tx_t *);
|
|
||||||
void zfs_sa_upgrade_txholds(dmu_tx_t *, struct znode *);
|
void zfs_sa_upgrade_txholds(dmu_tx_t *, struct znode *);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@ -1969,3 +1969,38 @@ sa_handle_unlock(sa_handle_t *hdl)
|
|||||||
ASSERT(hdl);
|
ASSERT(hdl);
|
||||||
mutex_exit(&hdl->sa_lock);
|
mutex_exit(&hdl->sa_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _KERNEL
|
||||||
|
EXPORT_SYMBOL(sa_handle_get);
|
||||||
|
EXPORT_SYMBOL(sa_handle_get_from_db);
|
||||||
|
EXPORT_SYMBOL(sa_handle_destroy);
|
||||||
|
EXPORT_SYMBOL(sa_buf_hold);
|
||||||
|
EXPORT_SYMBOL(sa_buf_rele);
|
||||||
|
EXPORT_SYMBOL(sa_lookup);
|
||||||
|
EXPORT_SYMBOL(sa_update);
|
||||||
|
EXPORT_SYMBOL(sa_remove);
|
||||||
|
EXPORT_SYMBOL(sa_bulk_lookup);
|
||||||
|
EXPORT_SYMBOL(sa_bulk_lookup_locked);
|
||||||
|
EXPORT_SYMBOL(sa_bulk_update);
|
||||||
|
EXPORT_SYMBOL(sa_size);
|
||||||
|
EXPORT_SYMBOL(sa_update_from_cb);
|
||||||
|
EXPORT_SYMBOL(sa_object_info);
|
||||||
|
EXPORT_SYMBOL(sa_object_size);
|
||||||
|
EXPORT_SYMBOL(sa_update_user);
|
||||||
|
EXPORT_SYMBOL(sa_get_userdata);
|
||||||
|
EXPORT_SYMBOL(sa_set_userp);
|
||||||
|
EXPORT_SYMBOL(sa_get_db);
|
||||||
|
EXPORT_SYMBOL(sa_handle_object);
|
||||||
|
EXPORT_SYMBOL(sa_register_update_callback);
|
||||||
|
EXPORT_SYMBOL(sa_setup);
|
||||||
|
EXPORT_SYMBOL(sa_replace_all_by_template);
|
||||||
|
EXPORT_SYMBOL(sa_replace_all_by_template_locked);
|
||||||
|
EXPORT_SYMBOL(sa_enabled);
|
||||||
|
EXPORT_SYMBOL(sa_cache_init);
|
||||||
|
EXPORT_SYMBOL(sa_cache_fini);
|
||||||
|
EXPORT_SYMBOL(sa_set_sa_object);
|
||||||
|
EXPORT_SYMBOL(sa_hdrsize);
|
||||||
|
EXPORT_SYMBOL(sa_handle_lock);
|
||||||
|
EXPORT_SYMBOL(sa_handle_unlock);
|
||||||
|
EXPORT_SYMBOL(sa_lookup_uio);
|
||||||
|
#endif /* _KERNEL */
|
||||||
|
@ -334,4 +334,11 @@ zfs_sa_upgrade_txholds(dmu_tx_t *tx, znode_t *zp)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
EXPORT_SYMBOL(zfs_sa_readlink);
|
||||||
|
EXPORT_SYMBOL(zfs_sa_symlink);
|
||||||
|
EXPORT_SYMBOL(zfs_sa_get_scanstamp);
|
||||||
|
EXPORT_SYMBOL(zfs_sa_set_scanstamp);
|
||||||
|
EXPORT_SYMBOL(zfs_sa_upgrade);
|
||||||
|
EXPORT_SYMBOL(zfs_sa_upgrade_txholds);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user