Rev 6845 | Rev 6917 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 6845 | Rev 6875 | ||
---|---|---|---|
Line 3... | Line 3... | ||
3 | ;; Copyright (C) KolibriOS team 2011-2015. All rights reserved. ;; |
3 | ;; Copyright (C) KolibriOS team 2011-2015. 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: 6845 $ |
8 | $Revision: 6875 $ |
9 | 9 | ||
10 | ; ============================================================================= |
10 | ; ============================================================================= |
11 | ; ================================= Constants ================================= |
11 | ; ================================= Constants ================================= |
Line 1377... | Line 1377... | ||
1377 | ; 10. Check whether the fs operation wants to enumerate partitions (go to 11) |
1377 | ; 10. Check whether the fs operation wants to enumerate partitions (go to 11) |
1378 | ; or work with some concrete partition (go to 12). |
1378 | ; or work with some concrete partition (go to 12). |
1379 | cmp byte [esi], 0 |
1379 | cmp byte [esi], 0 |
1380 | jnz .haspartition |
1380 | jnz .haspartition |
1381 | ; 11. The fs operation wants to enumerate partitions. |
1381 | ; 11. The fs operation wants to enumerate partitions. |
1382 | ; 11a. Only "list directory" operation is applicable to / |
- | |
1383 | ; the operation code. If wrong, go to 13. |
- | |
1384 | cmp dword [ebx], 1 |
- | |
1385 | jnz .access_denied |
- | |
1386 | ; 11b. If the media is inserted, use 'fs_dyndisk_next' as an enumeration |
- | |
1387 | ; procedure. Otherwise, use 'fs_dyndisk_next_nomedia'. |
1382 | ; Check whether the media is inserted. |
1388 | mov esi, fs_dyndisk_next_nomedia |
1383 | mov esi, fs_dyndisk_next_nomedia |
1389 | test edx, edx |
1384 | test edx, edx |
1390 | jz @f |
1385 | jz @f |
1391 | mov esi, fs_dyndisk_next |
1386 | mov esi, fs_dyndisk_next |
1392 | @@: |
- | |
1393 | ; 11c. Let the procedure from fs_lfn.inc do the job. |
1387 | @@: ; Let the procedure from fs_lfn.inc do the job. |
1394 | jmp file_system_lfn.maindir_noesi |
1388 | jmp file_system_lfn.maindir_noesi |
Line 1395... | Line 1389... | ||
1395 | 1389 | ||
1396 | .root: |
1390 | .root: |
1397 | pop ecx edx |
1391 | pop ecx edx |