ShingledFS 2.0
SMR-AwareFUSE-basedFileSystem
|
00001 00009 #ifndef __BAND_CLEAN_H_ 00010 #define __BAND_CLEAN_H_ 00011 00012 #include "common.h" 00013 00014 00015 /* ========================= */ 00016 /* -- Function Prototypes -- */ 00017 /* ========================= */ 00018 00019 int cleaner_init(void); 00020 void *band_cleaner(); 00021 int band_cleaning(); 00022 void migrate_data(int band_frag, int band_clean, 00023 struct store_entry *live, int length); 00024 void wait_cleaner(void); 00025 void signal_cleaner(void); 00026 void init_semcleaner(void); 00027 void band_cleanall(); 00028 void copy_data(int band_src, int band_dst, int offset_src, int len_src, 00029 int offset_dst); 00030 00031 int select_fragband(); 00032 int calc_fragbandefficiency(int band_num); 00033 int select_cleanband(int size); 00034 int calc_cleanbandefficiency(int band_num); 00035 00036 00037 #endif /* __BAND_CLEAN_H_ */