Page MenuHomeClusterLabs Projects

fs_bits.h
No OneTemporary

fs_bits.h

/******************************************************************************
*******************************************************************************
**
** Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
** Copyright (C) 2004-2005 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_BITS_H__
#define __FS_BITS_H__
/*#include "global.h" */
#include "libgfs2.h"
#include "fsck.h"
#define BFITNOENT (0xFFFFFFFF)
struct fs_bitmap
{
uint32_t bi_offset; /* The offset in the buffer of the first byte */
uint32_t bi_start; /* The position of the first byte in this block */
uint32_t bi_len; /* The number of bytes in this block */
};
typedef struct fs_bitmap fs_bitmap_t;
/* functions with blk #'s that are buffer relative */
uint32_t gfs2_bitcount(unsigned char *buffer, unsigned int buflen,
unsigned char state);
uint32_t gfs2_bitfit(unsigned char *buffer, unsigned int buflen,
uint32_t goal, unsigned char old_state);
/* functions with blk #'s that are rgrp relative */
uint32_t gfs2_blkalloc_internal(struct rgrp_list *rgd, uint32_t goal,
unsigned char old_state,
unsigned char new_state, int do_it);
/* functions with blk #'s that are file system relative */
int gfs2_get_bitmap(struct gfs2_sbd *sdp, uint64_t blkno,
struct rgrp_list *rgd);
int gfs2_set_bitmap(struct gfs2_sbd *sdp, uint64_t blkno, int state);
#endif /* __FS_BITS_H__ */

File Metadata

Mime Type
text/x-c
Expires
Sat, Jan 25, 7:10 AM (1 d, 15 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1321618
Default Alt Text
fs_bits.h (1 KB)

Event Timeline