Rev 4265 | Rev 5565 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4265 | Rev 5201 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
1 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
2 | ;; ;; |
2 | ;; ;; |
3 | ;; Contains ext2 initialization, plus syscall handling code. ;; |
3 | ;; Contains ext2 initialization, plus syscall handling code. ;; |
4 | ;; ;; |
4 | ;; ;; |
5 | ;; Copyright (C) KolibriOS team 2004-2013. All rights reserved. ;; |
5 | ;; Copyright (C) KolibriOS team 2013-2014. All rights reserved. ;; |
6 | ;; Distributed under the terms of the new BSD license. ;; |
6 | ;; Distributed under terms of the GNU General Public License ;; |
7 | ;; ;; |
7 | ;; ;; |
8 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
8 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line -... | Line 9... | ||
- | 9 | ||
- | 10 | $Revision: 5089 $ |
|
- | 11 | ||
9 | 12 | ||
10 | include 'ext2.inc' |
13 | include 'ext2.inc' |
11 | include 'blocks.inc' |
14 | include 'blocks.inc' |
12 | include 'inode.inc' |
15 | include 'inode.inc' |
Line 54... | Line 57... | ||
54 | ; 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. |
55 | ; 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. |
56 | ;--------------------------------------------------------------------- |
59 | ;--------------------------------------------------------------------- |
57 | proc ext2_create_partition |
60 | proc ext2_create_partition |
58 | push ebx |
61 | push ebx |
- | 62 | cmp dword [esi+DISK.MediaInfo.SectorSize], 512 |
|
- | 63 | jnz .fail |
|
Line 59... | Line 64... | ||
59 | 64 | ||
60 | mov eax, 2 ; Superblock starts at 1024-bytes. |
65 | mov eax, 2 ; Superblock starts at 1024-bytes. |
61 | add ebx, 512 ; Get pointer to fs-specific buffer. |
66 | add ebx, 512 ; Get pointer to fs-specific buffer. |
62 | call fs_read32_sys |
67 | call fs_read32_sys |