fsclient.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. /* fsclient.h: AFS File Server client stub declarations
  2. *
  3. * Copyright (C) 2002 Red Hat, Inc. All Rights Reserved.
  4. * Written by David Howells (dhowells@redhat.com)
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the License, or (at your option) any later version.
  10. */
  11. #ifndef _LINUX_AFS_FSCLIENT_H
  12. #define _LINUX_AFS_FSCLIENT_H
  13. #include "server.h"
  14. extern int afs_rxfs_get_volume_info(struct afs_server *server,
  15. const char *name,
  16. struct afs_volume_info *vinfo);
  17. extern int afs_rxfs_fetch_file_status(struct afs_server *server,
  18. struct afs_vnode *vnode,
  19. struct afs_volsync *volsync);
  20. struct afs_rxfs_fetch_descriptor {
  21. struct afs_fid fid; /* file ID to fetch */
  22. size_t size; /* total number of bytes to fetch */
  23. off_t offset; /* offset in file to start from */
  24. void *buffer; /* read buffer */
  25. size_t actual; /* actual size sent back by server */
  26. };
  27. extern int afs_rxfs_fetch_file_data(struct afs_server *server,
  28. struct afs_vnode *vnode,
  29. struct afs_rxfs_fetch_descriptor *desc,
  30. struct afs_volsync *volsync);
  31. extern int afs_rxfs_give_up_callback(struct afs_server *server,
  32. struct afs_vnode *vnode);
  33. /* this doesn't appear to work in OpenAFS server */
  34. extern int afs_rxfs_lookup(struct afs_server *server,
  35. struct afs_vnode *dir,
  36. const char *filename,
  37. struct afs_vnode *vnode,
  38. struct afs_volsync *volsync);
  39. /* this is apparently mis-implemented in OpenAFS server */
  40. extern int afs_rxfs_get_root_volume(struct afs_server *server,
  41. char *buf,
  42. size_t *buflen);
  43. #endif /* _LINUX_AFS_FSCLIENT_H */