Fixed wrong calculation of FSCI position
This commit is contained in:
1 parent
ba1ccf37e6
commit
5c4f56ca68
7 files changed
+2
-2
No files matched your search
BIN
Binary file not shown.
@@ -595,7 +595,7 @@ int create_file_system(char* disk_name, char* hdd_or_partition, uint64_t filesys
|
|||||||
{
|
{
|
||||||
// This is just a single partition
|
// This is just a single partition
|
||||||
// And then the file system is the only thing in the system.
|
// And then the file system is the only thing in the system.
|
||||||
sprintf(fsci->filesystem_information, "LSFS v1.0.0-a1\n(LessSimpelFileSystem)(Generated by the disk_manager_utility.c)\nDeveloped to SingOS\nby Jorn Guldberg\n");
|
sprintf(fsci->filesystem_information, "LSFS v1.0.0-a1\r\n(LessSimpelFileSystem)(Generated by the disk_manager_utility.c)\r\nDeveloped to SingOS\r\nby Jorn Guldberg\r\n");
|
||||||
|
|
||||||
if (hdd_or_partition[0] == '1')
|
if (hdd_or_partition[0] == '1')
|
||||||
{
|
{
|
||||||
@@ -657,7 +657,7 @@ int lsfs_disk_install_vbr(char *vbr_path)
|
|||||||
|
|
||||||
vbr_first_sector->vbr_size_in_bytes = st.st_size;
|
vbr_first_sector->vbr_size_in_bytes = st.st_size;
|
||||||
vbr_first_sector->vbr_LBA_address = p_control.fsci.this_partition_offset_on_disk;
|
vbr_first_sector->vbr_LBA_address = p_control.fsci.this_partition_offset_on_disk;
|
||||||
vbr_first_sector->vbr_LBA_FSCI_position = p_control.fsci.this_partition_offset_on_disk + SPACE_VBR_RECORD;
|
vbr_first_sector->vbr_LBA_FSCI_position = p_control.fsci.this_partition_offset_on_disk;
|
||||||
vbr_first_sector->vbr_signature = 0x1818;
|
vbr_first_sector->vbr_signature = 0x1818;
|
||||||
|
|
||||||
printf("VBR size: %d\n", vbr_first_sector->vbr_size_in_bytes);
|
printf("VBR size: %d\n", vbr_first_sector->vbr_size_in_bytes);
|
||||||
|
|||||||
Whitespace-only changes.
Binary file not shown.
BIN
Binary file not shown.
Reference in new issue
Block a user