linux/fs/orangefs/orangefs-utils.c

// SPDX-License-Identifier: GPL-2.0
/*
 * (C) 2001 Clemson University and The University of Chicago
 * Copyright 2018 Omnibond Systems, L.L.C.
 *
 * See COPYING in top-level directory.
 */
#include <linux/kernel.h>
#include "protocol.h"
#include "orangefs-kernel.h"
#include "orangefs-dev-proto.h"
#include "orangefs-bufmap.h"

__s32 fsid_of_op(struct orangefs_kernel_op_s *op)
{}

static int orangefs_inode_flags(struct ORANGEFS_sys_attr_s *attrs)
{}

static int orangefs_inode_perms(struct ORANGEFS_sys_attr_s *attrs)
{}

/*
 * NOTE: in kernel land, we never use the sys_attr->link_target for
 * anything, so don't bother copying it into the sys_attr object here.
 */
static inline void copy_attributes_from_inode(struct inode *inode,
    struct ORANGEFS_sys_attr_s *attrs)
{}

static int orangefs_inode_type(enum orangefs_ds_type objtype)
{}

static void orangefs_make_bad_inode(struct inode *inode)
{}

static int orangefs_inode_is_stale(struct inode *inode,
    struct ORANGEFS_sys_attr_s *attrs, char *link_target)
{}

int orangefs_inode_getattr(struct inode *inode, int flags)
{}

int orangefs_inode_check_changed(struct inode *inode)
{}

/*
 * issues a orangefs setattr request to make sure the new attribute values
 * take effect if successful.  returns 0 on success; -errno otherwise
 */
int orangefs_inode_setattr(struct inode *inode)
{}

/*
 * The following is a very dirty hack that is now a permanent part of the
 * ORANGEFS protocol. See protocol.h for more error definitions.
 */

/* The order matches include/orangefs-types.h in the OrangeFS source. */
static int PINT_errno_mapping[] =;

int orangefs_normalize_to_errno(__s32 error_code)
{}

#define NUM_MODES
__s32 ORANGEFS_util_translate_mode(int mode)
{}
#undef NUM_MODES