Rev 6869 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6869 | Rev 6876 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2004-2016. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2004-2016. 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: 6869 $ |
8 | $Revision: 6876 $ |
9 | 9 | ||
10 | ; NTFS external functions |
10 | ; NTFS external functions |
11 | ; in: |
11 | ; in: |
Line 1756... | Line 1756... | ||
1756 | div ecx |
1756 | div ecx |
1757 | jmp fsTime2bdfe |
1757 | jmp fsTime2bdfe |
Line 1758... | Line 1758... | ||
1758 | 1758 | ||
1759 | ;---------------------------------------------------------------- |
1759 | ;---------------------------------------------------------------- |
1760 | ntfs_GetFileInfo: |
- | |
1761 | call ntfs_lock |
1760 | ntfs_GetFileInfo: |
1762 | mov edi, [ebx+16] |
1761 | mov edi, [ebx+16] |
1763 | cmp byte [esi], 0 |
1762 | cmp byte [esi], 0 |
- | 1763 | jz .volume |
|
1764 | jz .volume |
1764 | call ntfs_lock |
1765 | call ntfs_find_lfn |
1765 | call ntfs_find_lfn |
1766 | jnc .found |
1766 | jnc .found |
1767 | test eax, eax |
1767 | test eax, eax |
1768 | jz ntfsFail |
1768 | jz ntfsFail |
Line 1773... | Line 1773... | ||
1773 | xor eax, eax |
1773 | xor eax, eax |
1774 | call ntfs_direntry_to_bdfe |
1774 | call ntfs_direntry_to_bdfe |
1775 | .end: |
1775 | .end: |
1776 | call ntfs_unlock |
1776 | call ntfs_unlock |
1777 | xor eax, eax |
1777 | xor eax, eax |
- | 1778 | @@: |
|
1778 | ret |
1779 | ret |
Line 1779... | Line 1780... | ||
1779 | 1780 | ||
1780 | .volume: |
- | |
1781 | mov byte [edi], 8 |
- | |
1782 | mov eax, [ebx+8] |
- | |
1783 | mov [edi+4], eax |
1781 | .volume: |
1784 | mov eax, dword [ebp+NTFS.Length] |
1782 | mov eax, dword [ebp+NTFS.Length] |
1785 | mov edx, dword [ebp+NTFS.Length+4] |
1783 | mov edx, dword [ebp+NTFS.Length+4] |
1786 | shld edx, eax, 9 |
1784 | shld edx, eax, 9 |
1787 | shl eax, 9 |
1785 | shl eax, 9 |
1788 | mov [edi+36], edx |
1786 | mov [edi+36], edx |
- | 1787 | mov [edi+32], eax |
|
- | 1788 | mov eax, [ebx+8] |
|
- | 1789 | mov byte [edi], 8 |
|
- | 1790 | mov [edi+4], eax |
|
- | 1791 | test eax, eax |
|
- | 1792 | jz @b |
|
1789 | mov [edi+32], eax |
1793 | call ntfs_lock |
1790 | add edi, 40 |
1794 | add edi, 40 |
1791 | mov [ebp+NTFS.cur_buf], edi |
1795 | mov [ebp+NTFS.cur_buf], edi |
1792 | mov [ebp+NTFS.cur_iRecord], 3 |
1796 | mov [ebp+NTFS.cur_iRecord], 3 |
1793 | mov [ebp+NTFS.cur_attr], 0x60 |
1797 | mov [ebp+NTFS.cur_attr], 0x60 |