I am unable to set file creation time properties through MFS. Can any one let me know how to do this ?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

I am unable to set file creation time properties through MFS. Can any one let me know how to do this ?

770 次查看
ashokg
Contributor I

Hi,

I am Ashok. Right now i am using K20 series controller for my project. I am using MQX 4.0 Version and MFS for my project.

My project application is to copy data from external flash to a file in USB and vice-versa. I am able to create a new file in USB through

MFS and successfully writing data to the file.

My Question is when i opened the same file in my PC and i checked the properties of file.Then, i found that created properties were blank( Please find the attached reference image). It is only showing modified properties of the file.

Can anyone let me know how to update the  created properties of while creating a new file. ?

Regards,

Ashok

Message was edited by: Ashok G

标记 (1)
0 项奖励
回复
3 回复数

605 次查看
ashokg
Contributor I

Anyone please let me know how we can achieve in MFS, since it is very urgent for me for my project

0 项奖励
回复

605 次查看
RadekS
NXP Employee
NXP Employee

You can use function _io_mfs_ioctl with command IO_IOCTL_SET_DATE_TIME.

For example:

error_code = ioctl(your_option_file_PTR, IO_IOCTL_SET_DATE_TIME, your_date_time_PTR);

For date/time bits meaning, please see chapter 3.8.1.18 IO_IOCTL_GET_DATE_TIME in MFS user guide:

c:\Freescale\Freescale_MQX_4_0\doc\mfs\MQXMFSUG.pdf

0 项奖励
回复

605 次查看
ashokg
Contributor I

Radeks,

Thanks for the answer.

Regards,

Ashok

0 项奖励
回复