Page MenuHomeClusterLabs Projects

fs_dir.h
No OneTemporary

fs_dir.h

/******************************************************************************
*******************************************************************************
**
** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
** Copyright (C) 2004 Red Hat, Inc. All rights reserved.
**
** This copyrighted material is made available to anyone wishing to use,
** modify, copy, or redistribute it subject to the terms and conditions
** of the GNU General Public License v.2.
**
*******************************************************************************
******************************************************************************/
#ifndef __FS_DIR_H__
#define __FS_DIR_H__
#include "osi_user.h"
#include "fs_incore.h"
#define ID_FILENAME 0
#define ID_INUM 1
typedef struct identifier_s {
int type;
osi_filename_t *filename;
struct gfs_inum *inum;
} identifier_t;
int dirent_first(osi_buf_t *bh, struct gfs_dirent **dent);
int get_leaf_nr(fs_inode_t *dip, uint32 index, uint64 *leaf_out);
int fs_filecmp(osi_filename_t *file1, char *file2, int len_of_file2);
int fs_dirent_del(fs_inode_t *dip, osi_filename_t *filename);
int fs_dir_add(fs_inode_t *dip, osi_filename_t *filename,
struct gfs_inum *inum, unsigned int type);
int fs_dirent_alloc(fs_inode_t *dip, osi_buf_t *bh,
int name_len, struct gfs_dirent **dent_out);
int fs_dir_search(fs_inode_t *dip, identifier_t *id, unsigned int *type);
#endif /* __FS_DIR_H__ */

File Metadata

Mime Type
text/x-c
Expires
Mon, Feb 24, 10:00 PM (13 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1464483
Default Alt Text
fs_dir.h (1 KB)

Event Timeline