From: "Serge E. Hallyn" <serue-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>
To: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Cc: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org,
kt-S89nZTSLPHGGdvJs77BJ7Q@public.gmane.org,
lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [patch 1/4][resend] fuse-procfs: proxy proc files
Date: Thu, 10 Sep 2009 21:57:07 -0500 [thread overview]
Message-ID: <20090911025707.GA24005@us.ibm.com> (raw)
In-Reply-To: <20090904165149.491603361-+lpkiSBCrgqwGcPS5fe+fxcU4LlsiAD9x8DZ0lRKBDr1ENwx4SLHqw@public.gmane.org>
Quoting Daniel Lezcano (daniel.lezcano-GANU6spQydw@public.gmane.org):
> This patch makes possible to mount the fuse-procfs on top of /proc
> and display the content of /proc via fuse.
>
> Signed-off-by: Daniel Lezcano <daniel.lezcano-GANU6spQydw@public.gmane.org>
Thanks, Daniel. This is neat. How were you thinking of
configuring this? A config file read at mount?
Actually one question I have is:
> +static int procfs_read(const char *path, char *buf, size_t size,
> + off_t offset, struct fuse_file_info *fi)
> +{
> + int ret;
> + struct procfs_file *pfile = (typeof(pfile))fi->fh;;
> +
> + switch (pfile->type) {
> +
> + case PROCFS_PROXY:
> + ret = read(pfile->file.proxy.fd, buf, size);
Are you supposed to do something with the offset? I don't see
any seek method in fuse_operations, does fuse keep the fp
internally and send it along as offset to read?
> + if (ret < 0)
> + return -errno;
> + break;
> + }
> +
> + return ret;
> +}
-serge
next parent reply other threads:[~2009-09-11 2:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20090904162556.407556958@mai-009101017029.toulouse-stg.fr.ibm.com>
[not found] ` <20090904165149.491603361@mai-009101017029.toulouse-stg.fr.ibm.com>
[not found] ` <20090904165149.491603361-+lpkiSBCrgqwGcPS5fe+fxcU4LlsiAD9x8DZ0lRKBDr1ENwx4SLHqw@public.gmane.org>
2009-09-11 2:57 ` Serge E. Hallyn [this message]
2009-09-14 20:38 ` [patch 1/4][resend] fuse-procfs: proxy proc files Krzysztof Taraszka
[not found] ` <ac1c4bf20909141338p3e13c1d6sc71899b7859bd963-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-09-14 21:13 ` Daniel Lezcano
[not found] ` <4AAEB1FA.3070102-GANU6spQydw@public.gmane.org>
2009-09-28 9:33 ` Krzysztof Taraszka
[not found] ` <ac1c4bf20909280233r5cd94343m30ac00c6ef9e1d10-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-09-28 15:47 ` Daniel Lezcano
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=20090911025707.GA24005@us.ibm.com \
--to=serue-r/jw6+rmf7hqt0dzr+alfa@public.gmane.org \
--cc=containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org \
--cc=daniel.lezcano-GANU6spQydw@public.gmane.org \
--cc=kt-S89nZTSLPHGGdvJs77BJ7Q@public.gmane.org \
--cc=lxc-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@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.