Rev 4923 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4923 | Rev 5116 | ||
---|---|---|---|
Line 5... | Line 5... | ||
5 | ;; Copyright (C) KolibriOS team 2013-2014. All rights reserved. ;; |
5 | ;; Copyright (C) KolibriOS team 2013-2014. All rights reserved. ;; |
6 | ;; Distributed under terms of the GNU General Public License ;; |
6 | ;; Distributed under terms of the GNU General Public License ;; |
7 | ;; ;; |
7 | ;; ;; |
8 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
8 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 9... | Line 9... | ||
9 | 9 | ||
Line 10... | Line 10... | ||
10 | $Revision: 4891 $ |
10 | $Revision: 5089 $ |
11 | 11 | ||
12 | 12 | ||
Line 57... | Line 57... | ||
57 | ; ebx + 512: points to 512-bytes buffer that can be used for anything. |
57 | ; ebx + 512: points to 512-bytes buffer that can be used for anything. |
58 | ; Output: eax: clear if can't create partition; set to EXTFS otherwise. |
58 | ; Output: eax: clear if can't create partition; set to EXTFS otherwise. |
59 | ;--------------------------------------------------------------------- |
59 | ;--------------------------------------------------------------------- |
60 | proc ext2_create_partition |
60 | proc ext2_create_partition |
61 | push ebx |
61 | push ebx |
- | 62 | cmp dword [esi+DISK.MediaInfo.SectorSize], 512 |
|
- | 63 | jnz .fail |
|
Line 62... | Line 64... | ||
62 | 64 | ||
63 | mov eax, 2 ; Superblock starts at 1024-bytes. |
65 | mov eax, 2 ; Superblock starts at 1024-bytes. |
64 | add ebx, 512 ; Get pointer to fs-specific buffer. |
66 | add ebx, 512 ; Get pointer to fs-specific buffer. |
65 | call fs_read32_sys |
67 | call fs_read32_sys |