Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   mount_setattr    ( 2 )

изменить свойства монтирования или дерева монтирования (change properties of a mount or mount tree)

  Name  |    Synopsis    |  Description  |  Return value  |  Error  |  Versions  |  Conforming to  |  Note  |  Examples  |  See also  |

Синопсис (Synopsis)

#include <linux/fcntl.h> /* Definition of AT_* constants */
       #include <linux/mount.h> /* Definition of MOUNT_ATTR_* constants */
       #include <sys/syscall.h> /* Definition of SYS_* constants */
       #include <unistd.h>

int syscall(SYS_mount_setattr, int dirfd, const char *pathname, unsigned int flags, struct mount_attr *attr, size_t size);

Note: glibc provides no wrapper for mount_setattr(), necessitating the use of syscall(2).