Rev 2627 | Rev 2639 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2627 | Rev 2638 | ||
---|---|---|---|
Line 34... | Line 34... | ||
34 | * @file fat_ops.c |
34 | * @file fat_ops.c |
35 | * @brief Implementation of VFS operations for the FAT file system server. |
35 | * @brief Implementation of VFS operations for the FAT file system server. |
36 | */ |
36 | */ |
37 | 37 | ||
38 | #include "fat.h" |
38 | #include "fat.h" |
- | 39 | #include "../../vfs/vfs.h" |
|
39 | #include <ipc/ipc.h> |
40 | #include <ipc/ipc.h> |
40 | #include <async.h> |
41 | #include <async.h> |
41 | #include <errno.h> |
42 | #include <errno.h> |
42 | 43 | ||
- | 44 | #define PLB_GET_CHAR(i) (plb_ro[(i) % PLB_SIZE]) |
|
- | 45 | ||
- | 46 | #define FAT_NAME_LEN 8 |
|
- | 47 | #define FAT_EXT_LEN 3 |
|
- | 48 | ||
- | 49 | #define FAT_PAD ' ' |
|
- | 50 | ||
- | 51 | #define FAT_DENTRY_UNUSED 0x00 |
|
- | 52 | #define FAT_DENTRY_E5_ESC 0x05 |
|
- | 53 | #define FAT_DENTRY_DOT 0x2e |
|
- | 54 | #define FAT_DENTRY_ERASED 0xe5 |
|
- | 55 | ||
- | 56 | static int match_path_component(fat_dentry_t *dentry, unsigned index, |
|
- | 57 | size_t len) |
|
- | 58 | { |
|
- | 59 | } |
|
- | 60 | ||
43 | void fat_lookup(ipc_callid_t rid, ipc_call_t *request) |
61 | void fat_lookup(ipc_callid_t rid, ipc_call_t *request) |
44 | { |
62 | { |
45 | int first = IPC_GET_ARG1(*request); |
63 | int first = IPC_GET_ARG1(*request); |
46 | int second = IPC_GET_ARG2(*request); |
64 | int second = IPC_GET_ARG2(*request); |
47 | int dev_handle = IPC_GET_ARG3(*request); |
65 | int dev_handle = IPC_GET_ARG3(*request); |