Browse Source

Fixed wrong calculation of FSCI position

master
Jørn Guldberg 6 years ago
parent
commit
5c4f56ca68
  1. BIN
      SingOS.img
  2. BIN
      a.out
  3. 4
      lsfs_disk_controller.h
  4. 0
      lsfs_folder/kernel/kernel.bin
  5. BIN
      lsfs_folder/kernel/utils/disk.out
  6. BIN
      lsfs_fuse
  7. BIN
      lsfs_fuse.o

BIN
SingOS.img

Binary file not shown.

BIN
a.out

Binary file not shown.

4
lsfs_disk_controller.h

@ -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);

0
lsfs_folder/kernel/kernel.bin

BIN
lsfs_folder/kernel/utils/disk.out

Binary file not shown.

BIN
lsfs_fuse

Binary file not shown.

BIN
lsfs_fuse.o

Binary file not shown.
Loading…
Cancel
Save