Changeset 291af81 in mainline for uspace/lib/ext4/libext4_superblock.c
- Timestamp:
- 2012-04-25T19:35:55Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 296ef5d6
- Parents:
- bc03679
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/ext4/libext4_superblock.c
rbc03679 r291af81 354 354 } 355 355 356 const uint8_t * ext4_superblock_get_uuid(ext4_superblock_t *sb) 357 { 358 return sb->uuid; 359 } 360 361 void ext4_superblock_set_uuid(ext4_superblock_t *sb, const uint8_t *uuid) 362 { 363 memcpy(sb->uuid, uuid, sizeof(sb->uuid)); 364 } 365 366 const char * ext4_superblock_get_volume_name(ext4_superblock_t *sb) 367 { 368 return sb->volume_name; 369 } 370 371 void ext4_superblock_set_volume_name(ext4_superblock_t *sb, const char *name) 372 { 373 memcpy(sb->volume_name, name, sizeof(sb->volume_name)); 374 } 375 376 const char * ext4_superblock_get_last_mounted(ext4_superblock_t *sb) 377 { 378 return sb->last_mounted; 379 } 380 381 void ext4_superblock_set_last_mounted(ext4_superblock_t *sb, const char *last) 382 { 383 memcpy(sb->last_mounted, last, sizeof(sb->last_mounted)); 384 } 385 386 356 387 uint32_t ext4_superblock_get_last_orphan(ext4_superblock_t *sb) 357 388 {
Note:
See TracChangeset
for help on using the changeset viewer.