Server for Information Technologies ������ ��������������
������� �������������� ����������
(095) 932-9212, 932-9213, 939-0783
E-mail: [email protected]
������ �������� ����(!) ������������� ���������� CIT Forum CD-ROM

MOUNT(2)

��������
mount - ������������ �������� �������

���������

        #include <sys/mount.h>

        int mount (spec, dir, mflag, fstyp)
        char *spec, *dir;
        int mflag, fstyp;

��������
��������� ����� mount ����������� ������� �� ������������ (�����������) � �������� � ������ dir ������� �������� �������, ������� ���������� � ����������� ������� ����� � ������ spec. ��������� spec � dir �������� ����������� �� ���������� �����; fstyp - ����� ���� �������� �������. ����� ���������� ����� ���� �������� �������, ����� ��������������� ��������� ������� sysfs(2). �������, ��� ���� ��� MS_FSS ��������� mflag �������, ��� �������� ������� ����� ��������� ����������� � ����� �������� �������� �������. �������� fstyp ����������� �� �������� ������ ��� ������������� ���� MS_FSS.

����� ��������� ���������� ������� ������ ������ �� ���� dir ����� ����������� ������� �� �������� ������� �������������� �������� �������.

������� ��� ��������� mflag ������������ ��� ���������� ������ �� ������ � �������������� �������� �������. ���� �� ����� 1, ������ ���������; � ��������� ������ ������ ���������, ���� ���� ��������������� ����� ������� � ���������� �����.

Mount ����� ���� ������ ������ ������������������. ��������������, ��� �� ������������ ������ �������� mount(1M).

��������� ����� mount ����������� ��������, ���� ��������� ���� �� ���� �� ��������� �������:

[EPERM]
����������� ������������� ������������ �� �������� ��������������� �����������������.
[ENOENT]
�����-���� �� ��������� ������ �� ����������.
[ENOTDIR]
��������� �������� �� �������� ���������.
[EREMOTE]
Spec �������� ��������� ����������� � �� ����� ���� �����������.
[ENOLINK]
�������� path ��������� �� ��������� ���������, ����� � ������� � ������ ������ ���.
[EMULTIHOP] ���������� path ������� ������������� ��������� � ��������� �����������.
[ENOTBLK]
Spec �� �������� ����������� ������� �����������.
[ENXIO]
���������� ����������, ��������������� spec, �� ����������.
[ENOTDIR]
Dir �� �������� ���������.
[EFAULT]
Spec ��� dir ��������� �� ������� ����������� �������� ��������� ������������.
[EBUSY]
Dir � ������ ������ �����������, �������� ����-�� ������� ��������� ��� ����� ����� ���� ���� �������.
[EBUSY]
���������� ����������, ��������������� spec, � ������ ������ ������������.
[EBUSY]
��������� ������� �������������� �������� ������.
[EROFS]
Spec ������� �� ������, � mflag ������� ����� �� ������.
[ENOSPC]
��������� �������� ������� � ���������� �� ����� FsOKAY, � mflag ������� ����� �� ������.
[EINVAL]
��������� �������� ������������ ���������� �����, ���� fstyp �����������, ���� mflag �����������.

��. �����
sysfs(2), umount(2), fs(4). mount(1M) � ����������� ��������������.

�����������
��� �������� ���������� ��������� ����� 0; � ������ ������ ������������ -1, � ���������� errno ������������� ��� ������.
Comments: [email protected]
Designed by Andrey Novikov
Copyright © CIT