Changeset 06d85e5 in mainline for uspace/lib/ext4/libext4_superblock.c


Ignore:
Timestamp:
2012-06-18T11:09:34Z (12 years ago)
Author:
Frantisek Princ <frantisek.princ@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
2616a75b
Parents:
9a487cc
Message:

Most of comments modified by current coding style

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ext4/libext4_superblock.c

    r9a487cc r06d85e5  
    981981        int rc;
    982982
    983         // Allocated memory for superblock structure
     983        /* Allocated memory for superblock structure */
    984984        void *data = malloc(EXT4_SUPERBLOCK_SIZE);
    985985        if (data == NULL) {
     
    987987        }
    988988
    989         // Read data from block device
     989        /* Read data from block device */
    990990        rc = block_read_bytes_direct(service_id, EXT4_SUPERBLOCK_OFFSET,
    991991            EXT4_SUPERBLOCK_SIZE, data);
     
    996996        }
    997997
    998         // Set output value
     998        /* Set output value */
    999999        (*sb) = data;
    10001000
     
    10141014        uint32_t phys_block_size;
    10151015
    1016         // Load physical block size from block device
     1016        /* Load physical block size from block device */
    10171017        rc = block_get_bsize(service_id, &phys_block_size);
    10181018        if (rc != EOK) {
     
    10201020        }
    10211021
    1022         // Compute address of the first block
     1022        /* Compute address of the first block */
    10231023        uint64_t first_block = EXT4_SUPERBLOCK_OFFSET / phys_block_size;
    1024         // Compute number of block to write
     1024        /* Compute number of block to write */
    10251025        uint32_t block_count = EXT4_SUPERBLOCK_SIZE / phys_block_size;
    10261026
    1027         // Check alignment
     1027        /* Check alignment */
    10281028        if (EXT4_SUPERBLOCK_SIZE % phys_block_size) {
    10291029                block_count++;
    10301030        }
    10311031
    1032         // Write data
     1032        /* Write data */
    10331033        return block_write_direct(service_id, first_block, block_count, sb);
    10341034
Note: See TracChangeset for help on using the changeset viewer.