Rev 4850 | Rev 5363 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4850 | Rev 5089 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2013-2014. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2013-2014. All rights reserved. ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
4 | ;; Distributed under terms of the GNU General Public License ;; |
5 | ;; ;; |
5 | ;; ;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
6 | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
Line 7... | Line 7... | ||
7 | 7 | ||
Line 8... | Line 8... | ||
8 | $Revision: 4850 $ |
8 | $Revision: 5089 $ |
Line 9... | Line 9... | ||
9 | 9 | ||
Line 23... | Line 23... | ||
23 | ; alloc and fill XFS (see xfs.inc) structure |
23 | ; alloc and fill XFS (see xfs.inc) structure |
24 | ; this function is called for each partition |
24 | ; this function is called for each partition |
25 | ; returns 0 (not XFS or invalid) / pointer to partition structure |
25 | ; returns 0 (not XFS or invalid) / pointer to partition structure |
26 | xfs_create_partition: |
26 | xfs_create_partition: |
27 | push ebx ecx edx esi edi |
27 | push ebx ecx edx esi edi |
- | 28 | cmp dword [esi+DISK.MediaInfo.SectorSize], 512 |
|
- | 29 | jnz .error |
|
28 | cmp dword[ebx + xfs_sb.sb_magicnum], XFS_SB_MAGIC ; signature |
30 | cmp dword[ebx + xfs_sb.sb_magicnum], XFS_SB_MAGIC ; signature |
29 | jne .error |
31 | jne .error |
Line 30... | Line 32... | ||
30 | 32 | ||
31 | ; TODO: check XFS.versionnum and XFS.features2 |
33 | ; TODO: check XFS.versionnum and XFS.features2 |