命令下的mount使用时带各种参数,我在写c代码时却不知道参数加在什么地方,查了下资料,自己再做个记录:

命令行:

 

1 mount -o iocharset=gb2312 /dev/sdb1 /mnt

 

对应的c:

 

1 rest = mount(devPath, mntPath, "vfat", S_WRITE, "iocharset=gb2312");
2 //如果有多个options,以“,”分开

 

 

相关文章:

  • 2022-12-23
  • 2021-07-08
  • 2021-07-22
  • 2022-12-23
  • 2022-12-23
  • 2021-06-25
  • 2022-01-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
  • 2021-10-31
  • 2022-12-23
相关资源
相似解决方案