From: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
To: Dan Smith <danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
Cc: containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org
Subject: Re: [RFC] Payloads and transient filesystem support for user-cr
Date: Wed, 02 Mar 2011 23:05:24 +0100 [thread overview]
Message-ID: <4D6EBF24.4000601@free.fr> (raw)
In-Reply-To: <1299101725-17603-1-git-send-email-danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
On 03/02/2011 10:35 PM, Dan Smith wrote:
> This adds payload support to user-cr for stashing things in the image.
> The first type of payload supported is a transient filesystem image,
> for things like /dev/shm.
>
> When I put "/dev/shm" into args.save_fs[] (and restore_fs), I am able
> to checkpoint and restart programs that are using POSIX sem_* operations
> successfully.
The posix semaphore use the mapped deleted hardlinked files.
...
sem_open("sem.dummy_sem_open", O_CREAT | O_EXCL, 0600, 1);
...
lstat("/dev/shm/sem.zaptW5", 0x7ffff086f530) = -1 ENOENT (No such file
or directory)
open("/dev/shm/sem.zaptW5", O_RDWR|O_CREAT|O_EXCL, 0600) = 3
write(3,
"\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", 32) = 32
mmap(NULL, 32, PROT_READ|PROT_WRITE, MAP_SHARED, 3, 0) = 0x7f1dda7b3000
link("/dev/shm/sem.zaptW5", "/dev/shm/sem.dummy_sem_open") = 0
fstat(3, {st_mode=S_IFREG|0600, st_size=32, ...}) = 0
brk(0) = 0x238e000
brk(0x23af000) = 0x23af000
unlink("/dev/shm/sem.zaptW5") = 0
close(3) = 0
...
AFAIK, the current implementation do not support that, no ?
How is it possible to CR programs using sem_* operations in this case ?
Thanks
-- Daniel
next prev parent reply other threads:[~2011-03-02 22:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-02 21:35 [RFC] Payloads and transient filesystem support for user-cr Dan Smith
[not found] ` <1299101725-17603-1-git-send-email-danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
2011-03-02 21:35 ` [PATCH 1/3] Make extract_headers.sh grab setns as well Dan Smith
2011-03-02 21:35 ` [PATCH 2/3] Export some things from restart.c Dan Smith
2011-03-02 21:35 ` [PATCH 3/3] [RFC] Add transient filesystem support to user-cr Dan Smith
2011-03-02 22:05 ` Daniel Lezcano [this message]
2011-03-03 0:23 ` [RFC] Payloads and transient filesystem support for user-cr Dan Smith
[not found] ` <877hch6oi2.fsf-FLMGYpZoEPULwtHQx/6qkW3U47Q5hpJU@public.gmane.org>
2011-03-03 8:35 ` Daniel Lezcano
2011-03-03 14:41 ` Dan Smith
[not found] ` <87vd005ks5.fsf-FLMGYpZoEPULwtHQx/6qkW3U47Q5hpJU@public.gmane.org>
2011-03-03 18:18 ` Daniel Lezcano
[not found] ` <4D6FDB71.7050603-GANU6spQydw@public.gmane.org>
2011-03-03 18:30 ` Dan Smith
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=4D6EBF24.4000601@free.fr \
--to=daniel.lezcano-ganu6spqydw@public.gmane.org \
--cc=containers-qjLDD68F18O7TbgM5vRIOg@public.gmane.org \
--cc=danms-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
/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
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.