ShingledFS 2.0
SMR-AwareFUSE-basedFileSystem
|
00001 00009 #ifndef __BAND_BITMAP_H_ 00010 #define __BAND_BITMAP_H_ 00011 00012 #include <limits.h> 00013 00014 #include "emutypes.h" 00015 00016 00017 00018 /* ====================== */ 00019 /* -- Type Definitions -- */ 00020 /* ====================== */ 00021 00026 typedef struct { 00027 band_t band; 00028 rba_t rba; 00029 rba_t total_blocks; 00030 }open_band_t; 00031 00032 00033 00034 /* ====================== */ 00035 /* -- Global Variables -- */ 00036 /* ====================== */ 00037 00038 open_band_t open_band; 00039 00040 00041 00042 /* ========================= */ 00043 /* -- Function Prototypes -- */ 00044 /* ========================= */ 00045 00046 int init_band_bitmap(void); 00047 int get_freebandnum(); 00048 void put_freebandnum(int band_num); 00049 int test_bandusage(int band_num); 00050 //int get_writebandnum(int size); 00051 void put_setbandnum(int band_num); 00052 int get_openband(int edi_fd, open_band_t *band, int block_count); 00053 00054 00055 00056 #endif /* __BAND_BITMAP_H_ */