/kernel/trunk/fs/ext2/ext2.asm |
---|
59,6 → 59,8 |
;--------------------------------------------------------------------- |
proc ext2_create_partition |
push ebx |
cmp dword [esi+DISK.MediaInfo.SectorSize], 512 |
jnz .fail |
mov eax, 2 ; Superblock starts at 1024-bytes. |
add ebx, 512 ; Get pointer to fs-specific buffer. |
/kernel/trunk/fs/fat.inc |
---|
154,6 → 154,9 |
xor eax, eax |
ret |
fat_create_partition: |
; sector size must be 512 |
cmp dword [esi+DISK.MediaInfo.SectorSize], 512 |
jnz .return0 |
; bootsector must have been successfully read |
cmp dword [esp+4], 0 |
jnz .return0 |
/kernel/trunk/fs/ntfs.inc |
---|
152,6 → 152,8 |
ret |
proc ntfs_create_partition |
cmp dword [esi+DISK.MediaInfo.SectorSize], 512 |
jnz .nope |
mov edx, dword [ebp+PARTITION.Length] |
cmp dword [esp+4], 0 |
jz .boot_read_ok |
/kernel/trunk/fs/xfs.asm |
---|
25,6 → 25,8 |
; returns 0 (not XFS or invalid) / pointer to partition structure |
xfs_create_partition: |
push ebx ecx edx esi edi |
cmp dword [esi+DISK.MediaInfo.SectorSize], 512 |
jnz .error |
cmp dword[ebx + xfs_sb.sb_magicnum], XFS_SB_MAGIC ; signature |
jne .error |