Fix: length more than LFS_FILE_MAX should return error
Fix: length more than LFS_FILE_MAX should return error

To make lfs_file_truncate inline with ftruncate function, when -ve
or size more than maximum file size is passed to function it should
return invalid parameter error. In LFS case LFS_ERR_INVAL.

Signed-off-by: Ajay Bhargav <1a73af9e7ae00182733b2292511b814be66f065f@rickeyworld.info>

littlefs-project/littlefs,geky/littlefs,geky/littlefs,geky/littlefs,littlefs-project/littlefs,geky/littlefs