linux/fs/afs/fsclient.c

// SPDX-License-Identifier: GPL-2.0-or-later
/* AFS File Server client stubs
 *
 * Copyright (C) 2002, 2007 Red Hat, Inc. All Rights Reserved.
 * Written by David Howells ([email protected])
 */

#include <linux/init.h>
#include <linux/slab.h>
#include <linux/sched.h>
#include <linux/circ_buf.h>
#include <linux/iversion.h>
#include <linux/netfs.h>
#include "internal.h"
#include "afs_fs.h"
#include "xdr_fs.h"

/*
 * decode an AFSFid block
 */
static void xdr_decode_AFSFid(const __be32 **_bp, struct afs_fid *fid)
{}

/*
 * Dump a bad file status record.
 */
static void xdr_dump_bad(const __be32 *bp)
{}

/*
 * decode an AFSFetchStatus block
 */
static void xdr_decode_AFSFetchStatus(const __be32 **_bp,
				      struct afs_call *call,
				      struct afs_status_cb *scb)
{}

static time64_t xdr_decode_expiry(struct afs_call *call, u32 expiry)
{}

static void xdr_decode_AFSCallBack(const __be32 **_bp,
				   struct afs_call *call,
				   struct afs_status_cb *scb)
{}

/*
 * decode an AFSVolSync block
 */
static void xdr_decode_AFSVolSync(const __be32 **_bp,
				  struct afs_volsync *volsync)
{}

/*
 * encode the requested attributes into an AFSStoreStatus block
 */
static void xdr_encode_AFS_StoreStatus(__be32 **_bp, struct iattr *attr)
{}

/*
 * decode an AFSFetchVolumeStatus block
 */
static void xdr_decode_AFSFetchVolumeStatus(const __be32 **_bp,
					    struct afs_volume_status *vs)
{}

/*
 * deliver reply data to an FS.FetchStatus
 */
static int afs_deliver_fs_fetch_status(struct afs_call *call)
{}

/*
 * FS.FetchStatus operation type
 */
static const struct afs_call_type afs_RXFSFetchStatus =;

/*
 * fetch the status information for a file
 */
void afs_fs_fetch_status(struct afs_operation *op)
{}

/*
 * deliver reply data to an FS.FetchData
 */
static int afs_deliver_fs_fetch_data(struct afs_call *call)
{}

/*
 * FS.FetchData operation type
 */
static const struct afs_call_type afs_RXFSFetchData =;

static const struct afs_call_type afs_RXFSFetchData64 =;

/*
 * fetch data from a very large file
 */
static void afs_fs_fetch_data64(struct afs_operation *op)
{}

/*
 * fetch data from a file
 */
void afs_fs_fetch_data(struct afs_operation *op)
{}

/*
 * deliver reply data to an FS.CreateFile or an FS.MakeDir
 */
static int afs_deliver_fs_create_vnode(struct afs_call *call)
{}

/*
 * FS.CreateFile and FS.MakeDir operation type
 */
static const struct afs_call_type afs_RXFSCreateFile =;

/*
 * Create a file.
 */
void afs_fs_create_file(struct afs_operation *op)
{}

static const struct afs_call_type afs_RXFSMakeDir =;

/*
 * Create a new directory
 */
void afs_fs_make_dir(struct afs_operation *op)
{}

/*
 * Deliver reply data to any operation that returns status and volume sync.
 */
static int afs_deliver_fs_file_status_and_vol(struct afs_call *call)
{}

/*
 * FS.RemoveFile operation type
 */
static const struct afs_call_type afs_RXFSRemoveFile =;

/*
 * Remove a file.
 */
void afs_fs_remove_file(struct afs_operation *op)
{}

static const struct afs_call_type afs_RXFSRemoveDir =;

/*
 * Remove a directory.
 */
void afs_fs_remove_dir(struct afs_operation *op)
{}

/*
 * deliver reply data to an FS.Link
 */
static int afs_deliver_fs_link(struct afs_call *call)
{}

/*
 * FS.Link operation type
 */
static const struct afs_call_type afs_RXFSLink =;

/*
 * make a hard link
 */
void afs_fs_link(struct afs_operation *op)
{}

/*
 * deliver reply data to an FS.Symlink
 */
static int afs_deliver_fs_symlink(struct afs_call *call)
{}

/*
 * FS.Symlink operation type
 */
static const struct afs_call_type afs_RXFSSymlink =;

/*
 * create a symbolic link
 */
void afs_fs_symlink(struct afs_operation *op)
{}

/*
 * deliver reply data to an FS.Rename
 */
static int afs_deliver_fs_rename(struct afs_call *call)
{}

/*
 * FS.Rename operation type
 */
static const struct afs_call_type afs_RXFSRename =;

/*
 * Rename/move a file or directory.
 */
void afs_fs_rename(struct afs_operation *op)
{}

/*
 * Deliver reply data to FS.StoreData or FS.StoreStatus
 */
static int afs_deliver_fs_store_data(struct afs_call *call)
{}

/*
 * FS.StoreData operation type
 */
static const struct afs_call_type afs_RXFSStoreData =;

static const struct afs_call_type afs_RXFSStoreData64 =;

/*
 * store a set of pages to a very large file
 */
static void afs_fs_store_data64(struct afs_operation *op)
{}

/*
 * Write data to a file on the server.
 */
void afs_fs_store_data(struct afs_operation *op)
{}

/*
 * FS.StoreStatus operation type
 */
static const struct afs_call_type afs_RXFSStoreStatus =;

static const struct afs_call_type afs_RXFSStoreData_as_Status =;

static const struct afs_call_type afs_RXFSStoreData64_as_Status =;

/*
 * set the attributes on a very large file, using FS.StoreData rather than
 * FS.StoreStatus so as to alter the file size also
 */
static void afs_fs_setattr_size64(struct afs_operation *op)
{}

/*
 * set the attributes on a file, using FS.StoreData rather than FS.StoreStatus
 * so as to alter the file size also
 */
static void afs_fs_setattr_size(struct afs_operation *op)
{}

/*
 * set the attributes on a file, using FS.StoreData if there's a change in file
 * size, and FS.StoreStatus otherwise
 */
void afs_fs_setattr(struct afs_operation *op)
{}

/*
 * deliver reply data to an FS.GetVolumeStatus
 */
static int afs_deliver_fs_get_volume_status(struct afs_call *call)
{}

/*
 * FS.GetVolumeStatus operation type
 */
static const struct afs_call_type afs_RXFSGetVolumeStatus =;

/*
 * fetch the status of a volume
 */
void afs_fs_get_volume_status(struct afs_operation *op)
{}

/*
 * deliver reply data to an FS.SetLock, FS.ExtendLock or FS.ReleaseLock
 */
static int afs_deliver_fs_xxxx_lock(struct afs_call *call)
{}

/*
 * FS.SetLock operation type
 */
static const struct afs_call_type afs_RXFSSetLock =;

/*
 * FS.ExtendLock operation type
 */
static const struct afs_call_type afs_RXFSExtendLock =;

/*
 * FS.ReleaseLock operation type
 */
static const struct afs_call_type afs_RXFSReleaseLock =;

/*
 * Set a lock on a file
 */
void afs_fs_set_lock(struct afs_operation *op)
{}

/*
 * extend a lock on a file
 */
void afs_fs_extend_lock(struct afs_operation *op)
{}

/*
 * release a lock on a file
 */
void afs_fs_release_lock(struct afs_operation *op)
{}

/*
 * Deliver reply data to an FS.GiveUpAllCallBacks operation.
 */
static int afs_deliver_fs_give_up_all_callbacks(struct afs_call *call)
{}

/*
 * FS.GiveUpAllCallBacks operation type
 */
static const struct afs_call_type afs_RXFSGiveUpAllCallBacks =;

/*
 * Flush all the callbacks we have on a server.
 */
int afs_fs_give_up_all_callbacks(struct afs_net *net, struct afs_server *server,
				 struct afs_address *addr, struct key *key)
{}

/*
 * Deliver reply data to an FS.GetCapabilities operation.
 */
static int afs_deliver_fs_get_capabilities(struct afs_call *call)
{}

static void afs_fs_get_capabilities_destructor(struct afs_call *call)
{}

/*
 * FS.GetCapabilities operation type
 */
static const struct afs_call_type afs_RXFSGetCapabilities =;

/*
 * Probe a fileserver for the capabilities that it supports.  This RPC can
 * reply with up to 196 words.  The operation is asynchronous and if we managed
 * to allocate a call, true is returned the result is delivered through the
 * ->done() - otherwise we return false to indicate we didn't even try.
 */
bool afs_fs_get_capabilities(struct afs_net *net, struct afs_server *server,
			     struct afs_endpoint_state *estate, unsigned int addr_index,
			     struct key *key)
{}

/*
 * Deliver reply data to an FS.InlineBulkStatus call
 */
static int afs_deliver_fs_inline_bulk_status(struct afs_call *call)
{}

static void afs_done_fs_inline_bulk_status(struct afs_call *call)
{}

/*
 * FS.InlineBulkStatus operation type
 */
static const struct afs_call_type afs_RXFSInlineBulkStatus =;

/*
 * Fetch the status information for up to 50 files
 */
void afs_fs_inline_bulk_status(struct afs_operation *op)
{}

/*
 * deliver reply data to an FS.FetchACL
 */
static int afs_deliver_fs_fetch_acl(struct afs_call *call)
{}

/*
 * FS.FetchACL operation type
 */
static const struct afs_call_type afs_RXFSFetchACL =;

/*
 * Fetch the ACL for a file.
 */
void afs_fs_fetch_acl(struct afs_operation *op)
{}

/*
 * FS.StoreACL operation type
 */
static const struct afs_call_type afs_RXFSStoreACL =;

/*
 * Fetch the ACL for a file.
 */
void afs_fs_store_acl(struct afs_operation *op)
{}