[英]How to pass options into the mount system call?
我想在Linux的C程序中掛載100 MB的tmpfs。 如何將傳遞掛載的選項(即-o size = 100M,mode = 0755)傳遞到掛載 syscall?
它是C的安裝接口:
#include <sys/mount.h>
int mount(const char *source, const char *target,
const char *filesystemtype, unsigned long mountflags,
const void *data);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.