| 69 | #endif |
| 70 | }; |
| 71 | static int win32_result_to_dfs(DWORD res) |
| 72 | { |
| 73 | int i; |
| 74 | int err = 0; |
| 75 | for (i = 0; i < sizeof(errcode_table) / sizeof(struct _errcode_map); i++) |
| 76 | { |
| 77 | if (errcode_table[i].win32err == (res & 0xFFFF)) |
| 78 | { |
| 79 | err = -errcode_table[i].dfserr; |
| 80 | return err; |
| 81 | } |
| 82 | } |
| 83 | |
| 84 | /* unknown error */ |
| 85 | rt_kprintf("dfs win32 error not supported yet: %d\n", res); |
| 86 | return -1; |
| 87 | } |
| 88 | |
| 89 | static int dfs_win32_mount( |
| 90 | struct dfs_filesystem *fs, |
no test coverage detected