Дайте пожалуйста ссылку на доку, где популярно описаны флаги MS_SLAVE, MS_PRIVATE, MS_SHARE для syscall sys_mount
В манах ни чего нет, гугль тоже на даёт оптимисза. Это содержание я не могу осознатьDocumentation\sharedsubtree.txt:
2a) A shared mount can be replicated to as many mountpoints and all the
replicas continue to be exactly same.
Here is an example:
Lets say /mnt has a mount that is shared.
mount --make-shared /mnt
note: mount command does not yet support the --make-shared flag.
I have included a small C program which does the same by executing
'smount /mnt shared'
#mount --bind /mnt /tmp
The above command replicates the mount at /mnt to the mountpoint /tmp
and the contents of both the mounts remain identical.
#ls /mnt
a b c
#ls /tmp
a b c
Now lets say we mount a device at /tmp/a
#mount /dev/sd0 /tmp/a
#ls /tmp/a
t1 t2 t2
#ls /mnt/a
t1 t2 t2
Note that the mount has propagated to the mount at /mnt as well.
And the same is true even when /dev/sd0 is mounted on /mnt/a. The
contents will be visible under /tmp/a too.
Пясал аффтору Ram Pai linuxram@us.ibm.com, аффтар молчит как рыба

Ответ на:
комментарий
от yantux

Ответ на:
комментарий
от asgard

Ответ на:
комментарий
от yantux

Ответ на:
комментарий
от yantux

Ответ на:
комментарий
от tailgunner

Ответ на:
комментарий
от yantux

Ответ на:
комментарий
от tailgunner

Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.
Похожие темы
- Форум Не могу замаунтить vfat :-( (2002)
- Форум Почему не работает команда в BASH скрипте? (2010)
- Форум syscall (2007)
- Форум Что это помогите разобраться (2013)
- Форум Ices (2007)
- Форум Uninterruptible Syscall (2010)
- Форум mount ftp через pam_mount (2021)
- Форум sys_mount что есть флаг MS_REC? (2007)
- Форум iptables flags (2015)
- Форум Overflow flag (2010)