C / C++ / C#: Howto do “mount -a”

后端 未结 3 866
感动是毒
感动是毒 2021-01-20 09:40

Question:

In C/C++/C#. (I need it for C#, but C and C++ is also fine).

How can I do a mount -a on Linux. I mean programmatically, without st

3条回答
  •  借酒劲吻你
    2021-01-20 10:23

    getmntent can help you read /etc/fstab (and then use the mount function in the other answers).

提交回复
热议问题