VirtualBox

Changeset 697 in vbox


Ignore:
Timestamp:
Feb 6, 2007 9:54:46 AM (18 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
18335
Message:

Fix EOL settings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Storage/VmdkHDD.cpp

    • Property svn:eol-style set to native
    r258 r697  
    2525 *
    2626 * Block driver for the VMDK format
    27  * 
     27 *
    2828 * Copyright (c) 2004 Fabrice Bellard
    2929 * Copyright (c) 2005 Filip Navara
    30  * 
     30 *
    3131 * Permission is hereby granted, free of charge, to any person obtaining a copy
    3232 * of this software and associated documentation files (the "Software"), to deal
     
    273273    } else if (magic == VMDK4_MAGIC) {
    274274        VMDK4Header header;
    275        
     275
    276276        rc = RTFileRead(s->File, &header, sizeof(header), NULL);
    277277        AssertRC(rc);
     
    287287            goto fail;
    288288        }
    289         s->l1_size = (s->total_sectors + s->l1_entry_sectors - 1) 
     289        s->l1_size = (s->total_sectors + s->l1_entry_sectors - 1)
    290290            / s->l1_entry_sectors;
    291291        s->l1_table_offset = le64_to_cpu(header.rgd_offset) << 9;
     
    364364    uint64_t cluster_offset;
    365365    int rc;
    366    
     366
    367367    l1_index = (offset >> 9) / s->l1_entry_sectors;
    368368    if (l1_index >= s->l1_size)
     
    447447}
    448448
    449 static int vmdk_is_allocated(BDRVVmdkState *s, int64_t sector_num, 
     449static int vmdk_is_allocated(BDRVVmdkState *s, int64_t sector_num,
    450450                             int nb_sectors, int *pnum)
    451451{
     
    462462}
    463463
    464 static int vmdk_read(BDRVVmdkState *s, int64_t sector_num, 
     464static int vmdk_read(BDRVVmdkState *s, int64_t sector_num,
    465465                    uint8_t *buf, int nb_sectors)
    466466{
    467467    int index_in_cluster, n;
    468468    uint64_t cluster_offset;
    469    
     469
    470470    while (nb_sectors > 0) {
    471471        cluster_offset = get_cluster_offset(s, sector_num << 9, 0);
     
    494494}
    495495
    496 static int vmdk_write(BDRVVmdkState *s, int64_t sector_num, 
     496static int vmdk_write(BDRVVmdkState *s, int64_t sector_num,
    497497                     const uint8_t *buf, int nb_sectors)
    498498{
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette