Home | History | Annotate | Download | only in ext2ed

Lines Matching full:entry_num

36 This function changes the current entry in the bitmap. It just changes the entry_num variable in block_bitmap_info
42 unsigned long entry_num;
54 entry_num=atol (buffer);
57 if (entry_num >= file_system_info.super_block.s_blocks_per_group) { /* Check if it is a valid entry number */
65 block_bitmap_info.entry_num=entry_num; /* If it is, just change entry_num and */
87 sprintf (buffer,"entry %ld",block_bitmap_info.entry_num+entry_offset);
103 sprintf (buffer,"entry %ld",block_bitmap_info.entry_num-entry_offset);
118 long entry_num,num=1;
127 entry_num=block_bitmap_info.entry_num;
129 if (num > file_system_info.super_block.s_blocks_per_group-entry_num) {
135 allocate_block (entry_num); /* for each block */
136 num--;entry_num++;
147 long entry_num,num=1;
156 entry_num=block_bitmap_info.entry_num;
157 if (num > file_system_info.super_block.s_blocks_per_group-entry_num) {
163 deallocate_block (entry_num);
164 num--;entry_num++;
171 void allocate_block (long entry_num)
179 byte_offset=entry_num/8; /* Find the correct byte - entry_num/8 */
180 /* The position inside the byte is entry_num %8 */
181 for (j=0;j<entry_num%8;j++)
186 void deallocate_block (long entry_num)
194 byte_offset=entry_num/8;
195 for (j=0;j<entry_num%8;j++)
207 The current position (as known from block_bitmap_info.entry_num) is highlighted.
214 unsigned long block_num,entry_num;
220 for (i=0,entry_num=0;i<file_system_info.super_block.s_blocks_per_group/8;i++,ptr++) {
222 if (entry_num==block_bitmap_info.entry_num) { /* Highlight the current entry */
232 if (entry_num==block_bitmap_info.entry_num)
235 entry_num++; /* Pass to the next entry */
252 block_num=block_bitmap_info.entry_num+block_bitmap_info.group_num*file_system_info.super_block.s_blocks_per_group;
256 ptr=type_data.u.buffer+block_bitmap_info.entry_num/8;
258 for (i=block_bitmap_info.entry_num % 8;i>0;i--)