2007-04-27 06:49:28 +08:00
|
|
|
/* AFS File Server client stub declarations
|
2005-04-17 06:20:36 +08:00
|
|
|
*
|
|
|
|
* Copyright (C) 2002 Red Hat, Inc. All Rights Reserved.
|
|
|
|
* Written by David Howells (dhowells@redhat.com)
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version
|
|
|
|
* 2 of the License, or (at your option) any later version.
|
|
|
|
*/
|
|
|
|
|
2007-04-27 06:49:28 +08:00
|
|
|
#ifndef AFS_FSCLIENT_H
|
|
|
|
#define AFS_FSCLIENT_H
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
#include "server.h"
|
|
|
|
|
2007-04-27 06:49:28 +08:00
|
|
|
extern int afs_rxfs_get_volume_info(struct afs_server *,
|
|
|
|
const char *,
|
|
|
|
struct afs_volume_info *);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2007-04-27 06:49:28 +08:00
|
|
|
extern int afs_rxfs_fetch_file_status(struct afs_server *,
|
|
|
|
struct afs_vnode *,
|
|
|
|
struct afs_volsync *);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
struct afs_rxfs_fetch_descriptor {
|
|
|
|
struct afs_fid fid; /* file ID to fetch */
|
|
|
|
size_t size; /* total number of bytes to fetch */
|
|
|
|
off_t offset; /* offset in file to start from */
|
|
|
|
void *buffer; /* read buffer */
|
|
|
|
size_t actual; /* actual size sent back by server */
|
|
|
|
};
|
|
|
|
|
2007-04-27 06:49:28 +08:00
|
|
|
extern int afs_rxfs_fetch_file_data(struct afs_server *,
|
|
|
|
struct afs_vnode *,
|
|
|
|
struct afs_rxfs_fetch_descriptor *,
|
|
|
|
struct afs_volsync *);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
2007-04-27 06:49:28 +08:00
|
|
|
extern int afs_rxfs_give_up_callback(struct afs_server *,
|
|
|
|
struct afs_vnode *);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
/* this doesn't appear to work in OpenAFS server */
|
2007-04-27 06:49:28 +08:00
|
|
|
extern int afs_rxfs_lookup(struct afs_server *,
|
|
|
|
struct afs_vnode *,
|
|
|
|
const char *,
|
|
|
|
struct afs_vnode *,
|
|
|
|
struct afs_volsync *);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
/* this is apparently mis-implemented in OpenAFS server */
|
2007-04-27 06:49:28 +08:00
|
|
|
extern int afs_rxfs_get_root_volume(struct afs_server *,
|
|
|
|
char *,
|
|
|
|
size_t *);
|
2005-04-17 06:20:36 +08:00
|
|
|
|
|
|
|
|
2007-04-27 06:49:28 +08:00
|
|
|
#endif /* AFS_FSCLIENT_H */
|