saymorning_world
我涨
采纳率87.5%
2017-02-23 10:02 阅读 1.2k

vxworks C++:vxworks中不能重命名文件

vxworks中不能重命名文件:
rename(finFile.c_str(), buFile.c_str());
是什么原因(确认不是路径问题,试过可以创建和删除文件)?

有熟悉vxworks系统的大神可以帮忙解答下吗?

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享

1条回答 默认 最新

  • fight_in_dl 战在春秋 2017-02-23 10:54

    检查下文件系统是什么类型。

    Currently both the Target Server File System (TSFS) and NFS are not able to be used.

    The Target Server File System (TSFS) uses the netDrv driver. This driver does not support any ioctl that allows flushing to the disk,
    nor does it allow renaming of files via FIORENAME. The NFS file system uses nfsDrv and that driver does not support FIORENAME and cannot be used with Berkeley DB.

    点赞 评论 复制链接分享

相关推荐