Changeset 1433ecda in mainline for uspace/lib/ext4
- Timestamp:
- 2018-04-04T15:42:37Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 2c4e1cc
- Parents:
- 47b2d7e3
- Location:
- uspace/lib/ext4
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/include/ext4/types.h
r47b2d7e3 r1433ecda 323 323 uint32_t author; 324 324 } hurd2; 325 } __attribute__ 325 } __attribute__((packed)) osd2; 326 326 327 327 uint16_t extra_isize; … … 333 333 uint32_t crtime_extra; /* Extra file creation time (nsec << 2 | epoch) */ 334 334 uint32_t version_hi; /* High 32 bits for 64-bit version */ 335 } __attribute__ 335 } __attribute__((packed)) ext4_inode_t; 336 336 337 337 #define EXT4_INODE_MODE_FIFO 0x1000 … … 407 407 uint8_t name_length_high; /* Higher 8 bits of name length */ 408 408 uint8_t inode_type; /* Type of referenced inode (in rev >= 0.5) */ 409 } __attribute__ 409 } __attribute__((packed)); 410 410 411 411 uint8_t name[EXT4_DIRECTORY_FILENAME_LEN]; /* Entry name */ -
uspace/lib/ext4/src/balloc.c
r47b2d7e3 r1433ecda 501 501 502 502 free_blocks = 503 503 ext4_block_group_get_free_blocks_count(bg_ref->block_group, sb); 504 504 if (free_blocks == 0) { 505 505 /* This group has no free blocks */ … … 573 573 } 574 574 575 next_group:575 next_group: 576 576 rc = ext4_filesystem_put_block_group_ref(bg_ref); 577 577 if (rc != EOK) -
uspace/lib/ext4/src/bitmap.c
r47b2d7e3 r1433ecda 55 55 uint8_t *target = bitmap + byte_index; 56 56 57 *target &= ~ 57 *target &= ~(1 << bit_index); 58 58 } 59 59 … … 80 80 81 81 target = bitmap + byte_index; 82 *target &= ~ 82 *target &= ~(1 << bit_index); 83 83 84 84 idx++; … … 112 112 113 113 target = bitmap + byte_index; 114 *target &= ~ 114 *target &= ~(1 << bit_index); 115 115 116 116 idx++; -
uspace/lib/ext4/src/inode.c
r47b2d7e3 r1433ecda 523 523 * 524 524 */ 525 ext4_extent_header_t * 525 ext4_extent_header_t *ext4_inode_get_extent_header(ext4_inode_t *inode) 526 526 { 527 527 return (ext4_extent_header_t *) inode->blocks;
Note:
See TracChangeset
for help on using the changeset viewer.