xfs_symlink_remote.h 1.1 KB

12345678910111213141516171819202122232425262728
  1. // SPDX-License-Identifier: GPL-2.0
  2. /*
  3. * Copyright (c) 2000-2005 Silicon Graphics, Inc.
  4. * Copyright (c) 2013 Red Hat, Inc.
  5. * All Rights Reserved.
  6. */
  7. #ifndef __XFS_SYMLINK_REMOTE_H
  8. #define __XFS_SYMLINK_REMOTE_H
  9. /*
  10. * Symlink decoding/encoding functions
  11. */
  12. int xfs_symlink_blocks(struct xfs_mount *mp, int pathlen);
  13. int xfs_symlink_hdr_set(struct xfs_mount *mp, xfs_ino_t ino, uint32_t offset,
  14. uint32_t size, struct xfs_buf *bp);
  15. bool xfs_symlink_hdr_ok(xfs_ino_t ino, uint32_t offset,
  16. uint32_t size, struct xfs_buf *bp);
  17. void xfs_symlink_local_to_remote(struct xfs_trans *tp, struct xfs_buf *bp,
  18. struct xfs_inode *ip, struct xfs_ifork *ifp,
  19. void *priv);
  20. xfs_failaddr_t xfs_symlink_shortform_verify(void *sfp, int64_t size);
  21. int xfs_symlink_remote_read(struct xfs_inode *ip, char *link);
  22. int xfs_symlink_write_target(struct xfs_trans *tp, struct xfs_inode *ip,
  23. xfs_ino_t owner, const char *target_path, int pathlen,
  24. xfs_fsblock_t fs_blocks, uint resblks);
  25. int xfs_symlink_remote_truncate(struct xfs_trans *tp, struct xfs_inode *ip);
  26. #endif /* __XFS_SYMLINK_REMOTE_H */