博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年1月10日

摘要: 往U盘写文件close之前先调用下面两个函数,避免拔出U盘后文件丢失pDest是文件句柄fflush(pDest); fdatasync(fileno(pDest)); 挂载nfs方法 cd tmp mkdir nfs mount -t nfs -o nolock 192.168.39.17:/home/log/log1 /tmp/nfs 阅读全文

posted @ 2011-01-10 10:34 浪端之渡鸟 阅读(1957) 评论(0) 推荐(0) 编辑