Fixed wrong calculation of FSCI position

This commit is contained in:
Jørn Guldberg committed 2019-06-26 22:39:04 +00:00
1 parent ba1ccf37e6
commit 5c4f56ca68
7 files changed
+2 -2

No files matched your search

BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.
+2 -2
View File
@@ -595,7 +595,7 @@ int create_file_system(char* disk_name, char* hdd_or_partition, uint64_t filesys
{
// This is just a single partition
// 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')
{
@@ -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_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;
printf("VBR size: %d\n", vbr_first_sector->vbr_size_in_bytes);
View File
Whitespace-only changes.
Binary file not shown.
BIN
View File
Binary file not shown.
BIN
View File
Binary file not shown.