From: Steve French <smfrench@austin.rr.com>
To: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: linux-fsdevel@vger.kernel.org
Subject: Re: filesystem client mapping of uid_t/gid_t field in lookup
Date: Sun, 15 May 2005 17:37:42 -0500 [thread overview]
Message-ID: <4287CF36.2000007@austin.rr.com> (raw)
In-Reply-To: <1116052679.13863.38.camel@lade.trondhjem.org>
Trond Myklebust wrote:
>the uid/gid mapping is done using upcalls to
>a userland daemon on both the client and server side. A cache is used in
>order to avoid too many upcalls. Why would this sort of approach be
>impractical for CIFS?
>
>Cheers,
> Trond
>
>
>
It could be done with upcalls which populate a cache of uid mappings,
but I was worried about avoiding all deadlock cases - not just the
problem of making sure the user space daemon never dies, and the
performance implications, but what worried me more was having to do a
task switch in lookup (and readdir etc.) to an upcall thread to resolve
some mappings might result in deadlock if the upcall thread could ever
get blocked on writeback of inode data that the kernel code has to page
out. This also means that the upcall thread has to be aware of which
smb_uid (smb session) and/or which tree connection (mount to the same
target UNC name) the mapping is for which is possible but perhaps harder
to implement than the approach that RFC1813 mentions ie "mapping
established by the user from a client at mount time."
next prev parent reply other threads:[~2005-05-15 22:47 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-13 22:50 filesystem client mapping of uid_t/gid_t field in lookup Steve French
2005-05-14 6:37 ` Trond Myklebust
2005-05-14 11:38 ` Jamie Lokier
2005-05-15 22:37 ` Steve French [this message]
2005-05-16 18:18 ` Bryan Henderson
2005-05-16 19:03 ` Spencer Shepler
2005-05-16 22:23 ` Trond Myklebust
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=4287CF36.2000007@austin.rr.com \
--to=smfrench@austin.rr.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=trond.myklebust@fys.uio.no \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox