{"action":"created","issue":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6336","repository_url":"https://api.github.com/repos/ARMmbed/mbed-os","labels_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6336/labels{/name}","comments_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6336/comments","events_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6336/events","html_url":"https://github.com/ARMmbed/mbed-os/pull/6336","id":304485605,"number":6336,"title":"fatfs: Update error code mapping","user":{"login":"geky","id":1075160,"avatar_url":"https://avatars3.githubusercontent.com/u/1075160?v=4","gravatar_id":"","url":"https://api.github.com/users/geky","html_url":"https://github.com/geky","followers_url":"https://api.github.com/users/geky/followers","following_url":"https://api.github.com/users/geky/following{/other_user}","gists_url":"https://api.github.com/users/geky/gists{/gist_id}","starred_url":"https://api.github.com/users/geky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geky/subscriptions","organizations_url":"https://api.github.com/users/geky/orgs","repos_url":"https://api.github.com/users/geky/repos","events_url":"https://api.github.com/users/geky/events{/privacy}","received_events_url":"https://api.github.com/users/geky/received_events","type":"User","site_admin":false},"labels":[{"id":598819851,"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/BREAKING-CHANGE","name":"BREAKING-CHANGE","color":"b60205","default":false},{"id":426496706,"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/ready%20for%20merge","name":"ready for merge","color":"0e8a16","default":false},{"id":858594596,"url":"https://api.github.com/repos/ARMmbed/mbed-os/labels/release-version:%205.9.0-rc1","name":"release-version: 5.9.0-rc1","color":"fef2c0","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-12T18:17:40Z","updated_at":"2018-03-21T14:00:05Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/pulls/6336","html_url":"https://github.com/ARMmbed/mbed-os/pull/6336","diff_url":"https://github.com/ARMmbed/mbed-os/pull/6336.diff","patch_url":"https://github.com/ARMmbed/mbed-os/pull/6336.patch"},"body":"### Description\r\n\r\nContinues https://github.com/ARMmbed/mbed-os/issues/6072, https://github.com/ARMmbed/mbed-os/pull/6120, https://github.com/ARMmbed/mbed-os/pull/6323\r\n\r\nA lot of the error codes in fatfs were mapped incorrectly. This patch revisits the error code mapping to try to correct these mistakes.\r\n\r\nNote: This is required before we can test LittleFS + FAT consistently\r\n\r\n| ChanFS                  | was        | should be  | ChanFS description                                               |\r\n| ----------------------- | ---------- | ---------- | ---------------------------------------------------------------- |\r\n| FR_OK                   | 0          | 0          | Succeeded                                                        |\r\n| FR_DISK_ERR             | EIO        | EIO        | A hard error occurred in the low level disk I/O layer            |\r\n| FR_INT_ERR              | ~EBADF~    | -1         | Assertion failed                                                 |\r\n| FR_NOT_READY            | EIO        | EIO        | The physical drive cannot work                                   |\r\n| FR_NO_FILE              | ENOENT     | ENOENT     | Could not find the file                                          |\r\n| FR_NO_PATH              | ~ENOENT~   | ENOTDIR    | Could not find the path                                          |\r\n| FR_INVALID_NAME         | ~ENOENT~   | EINVAL     | The path name format is invalid                                  |\r\n| FR_DENIED               | EACCES     | EACCES     | Access denied due to prohibited access or directory full         |\r\n| FR_EXIST                | EEXIST     | EEXIST     | Access denied due to prohibited access                           |\r\n| FR_INVALID_OBJECT       | ~EFAULT~   | EBADF      | The file/directory object is invalid                             |\r\n| FR_WRITE_PROTECTED      | EACCES     | EACCES     | The physical drive is write protected                            |\r\n| FR_INVALID_DRIVE        | ~ENOENT~   | ENODEV     | The logical drive number is invalid                              |\r\n| FR_NOT_ENABLED          | ~ENXIO~    | ENODEV     | The volume has no work area                                      |\r\n| FR_NO_FILESYSTEM        | ~ENOENT~   | EINVAL     | There is no valid FAT volume                                     |\r\n| FR_MKFS_ABORTED         | ~EBADF~    | EIO        | The f_mkfs() aborted due to any problem                          |\r\n| FR_TIMEOUT              | ~EBADF~    | ETIMEDOUT     | Could not get a grant to access the volume within defined period |\r\n| FR_LOCKED               | ~EACCES~   | EBUSY      | The operation is rejected according to the file sharing policy   |\r\n| FR_NOT_ENOUGH_CORE      | ENOMEM     | ENOMEM     | LFN working buffer could not be allocated                        |\r\n| FR_TOO_MANY_OPEN_FILES  | ENFILE     | ENFILE     | Number of open files > FF_FS_LOCK                                |\r\n| FR_INVALID_PARAMETER    | ~ENOEXEC~  | EINVAL     | Given parameter is invalid                                       |\r\n\r\ncc @kegilbert, @deepikabhavnani, @kjbracey-arm, @JanneKiiskila, @teetak01 \r\nintended for minor release\r\nshould resolve https://github.com/ARMmbed/mbed-os/issues/6072\r\nnote, https://github.com/ARMmbed/mbed-os/issues/5653 is related but not fixed by this pr (requires changes in ChanFS).\r\n\r\n### Pull request type\r\n\r\n<!-- \r\n    Required\r\n    Please tick one of the following types \r\n-->\r\n\r\n- [ ] Fix\r\n- [ ] Refactor\r\n- [ ] New target\r\n- [ ] Feature\r\n- [x] Breaking change\r\n"},"comment":{"url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/comments/374946295","html_url":"https://github.com/ARMmbed/mbed-os/pull/6336#issuecomment-374946295","issue_url":"https://api.github.com/repos/ARMmbed/mbed-os/issues/6336","id":374946295,"user":{"login":"JanneKiiskila","id":21054492,"avatar_url":"https://avatars1.githubusercontent.com/u/21054492?v=4","gravatar_id":"","url":"https://api.github.com/users/JanneKiiskila","html_url":"https://github.com/JanneKiiskila","followers_url":"https://api.github.com/users/JanneKiiskila/followers","following_url":"https://api.github.com/users/JanneKiiskila/following{/other_user}","gists_url":"https://api.github.com/users/JanneKiiskila/gists{/gist_id}","starred_url":"https://api.github.com/users/JanneKiiskila/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JanneKiiskila/subscriptions","organizations_url":"https://api.github.com/users/JanneKiiskila/orgs","repos_url":"https://api.github.com/users/JanneKiiskila/repos","events_url":"https://api.github.com/users/JanneKiiskila/events{/privacy}","received_events_url":"https://api.github.com/users/JanneKiiskila/received_events","type":"User","site_admin":false},"created_at":"2018-03-21T14:00:05Z","updated_at":"2018-03-21T14:00:05Z","author_association":"CONTRIBUTOR","body":"Task IOTCLT-2533 raised to our backog.\r\n"}}
{"actor":{"display_login":"JanneKiiskila"}}