From: Anton Farygin <rider@altlinux.com> To: ALT Devel discussion list <devel@altlinux.ru> Subject: Re: [devel] Re: unionfsctl and dir creation Date: Wed, 04 May 2005 09:48:46 +0400 Message-ID: <4278623E.6030306@altlinux.com> (raw) In-Reply-To: <427786FE.7050209@vzljot.ru> Vitaly Ostanin wrote: > Anton Farygin пишет: > >> Vitaly Ostanin wrote: >> >> >>> Здравствуйте. >>> >>> Скажите, после добавления rw бранча с помощью unionfsctl нужно >>> воссоздавать структуру каталогов бранча? >>> >>> mkdir /mnt/usbroot >>> mount -L usbroot /mnt/usbroot >>> mkdir /mnt/usbroot/etc >>> mkdir /mnt/usbroot/home >>> >>> Добавил c unionctl к /etc ещё /mnt/usbroot/etc >>> к /home - /mnt/usbroot/home. >>> >>> Потом сделал >>> touch /home/vyt/file >>> >>> После загрузку в рабочую систему на флешке появился >>> /mnt/usbroot/etc/mtab >>> а вот >>> /mnt/usbroot/home/vyt/file >>> не появился. >>> >>> Так вот, как правильно добавлять rw бранчи, чтобы сохранялись все >>> изменения? >> >> >> >> нужно делать именно то - забирать с предыдущего r/w branch'а все >> изменения. > > > Каким образом их забирать? Кстати, что именно считается > изменением? забирать копированием, под изменением в unionfs считается попытка открытия файла на запись. > При изменении содержимого файла в одном r/w branch он > изменится в другом branch ? Нет, при изменении содержимого файла в r/o branch'е он изменится в первом r/w branch'е. > > После следующего заклинания: > > mount -t unionfs -o > dirs=/mnt/usbroot/home/vyt=rw:/home/vyt/temp/vyt=rw > /mnt/usbroot/home/vyt /home/vyt/temp/vyt > > воссоздал в бранче на флешке структуру из временного каталога. > Изменил пару строк в файле в temp, на флешке никаких изменений не > нашёл. Странно. У меня изменения на flash'ку попадают. Только вот /home/vyt/temp/vyt надо делать как ro, естественно. > >> Но имейте в виду, что в случае, если там были сокеты - может >> быть кому-то плохо. > > > Насколько плохо? Я хочу на флешке изменения /etc и /home носить - > чем сокеты в них могут подгадить? > Если сокет был открыт приложением на tmpfs, то при изменении branch'а он так и останется на tmpfs. Rgds, Rider
next prev parent reply other threads:[~2005-05-04 5:48 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2005-04-30 15:39 [devel] " Vitaly Ostanin 2005-05-03 13:49 ` Anton Farygin 2005-05-03 14:13 ` [devel] " Vitaly Ostanin 2005-05-04 5:48 ` Anton Farygin [this message] 2005-05-04 8:46 ` Vitaly Ostanin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=4278623E.6030306@altlinux.com \ --to=rider@altlinux.com \ --cc=devel@altlinux.ru \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git