From: Andrew Vagin <avagin@odin.com>
To: Miklos Szeredi <miklos@szeredi.hu>
Cc: criu@openvz.org, linux-unionfs@vger.kernel.org, saied@google.com
Subject: procfs reports unexpected mnt_id and path for overlayfs files
Date: Wed, 15 Apr 2015 11:50:14 +0300 [thread overview]
Message-ID: <20150415085013.GA8907@odin.com> (raw)
Hello Miklos and Everyone else,
We have a report that a container with overlayfs can't be checkpointed.
To dump file descriptors we get information from /proc/pid/fd/ and /proc/pid/fdinfo.
But in case of overlayfs we see unexpected values there.
/proc/PID/fdinfo/FD contains mnt_id which isn't presented in /proc/pid/mountinfo.
/proc/PID/fd/FD does not contain an absolute path to the opened file.
Can someone help to fix these issues?
Here is a sequance of commands to reproduce the problem:
[root@ ]# mount -t overlay overlay -olowerdir=a,upperdir=b,workdir=c z
[root@ ]# cat /proc/self/mountinfo | grep over
163 77 0:42 / /home/avagin/tmp/z rw,relatime shared:109 - overlay overlay rw,lowerdir=a,upperdir=b,workdir=c
[root@ ]# ls -l /home/avagin/tmp/z/a
-rw-r--r-- 1 root root 0 Apr 14 09:43 /home/avagin/tmp/z/a
[root@ ]# ipython
In [1]: fd = open("/home/avagin/tmp/z/a")
In [2]:
[1]+ Stopped ipython
[root@ ]# ps -C ipython
PID TTY TIME CMD
8868 pts/6 00:00:00 ipython
[root@ ]# cat /proc/8868/fdinfo/5
pos: 0
flags: 0100000
mnt_id: 164
# we expect to see mnt_id: 163
[root@ ]# ls -l /proc/8868/fd/5
lr-x------ 1 root root 64 Apr 15 11:21 /proc/8868/fd/5 -> /a
# we expect to see /proc/8868/fd/5 -> /home/avagin/tmp/z/a
Thanks,
Andrew
next reply other threads:[~2015-04-15 8:50 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-15 8:50 Andrew Vagin [this message]
2015-04-15 15:07 ` procfs reports unexpected mnt_id and path for overlayfs files Miklos Szeredi
2015-04-15 17:47 ` Saied Kazemi
2015-05-29 21:29 ` Saied Kazemi
2015-07-06 17:45 ` Saied Kazemi
2015-10-12 17:16 ` Miklos Szeredi
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=20150415085013.GA8907@odin.com \
--to=avagin@odin.com \
--cc=criu@openvz.org \
--cc=linux-unionfs@vger.kernel.org \
--cc=miklos@szeredi.hu \
--cc=saied@google.com \
/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.