* Re: FUSE merging? [not found] ` <E1EBQco-0006qr-00@dorka.pomaz.szeredi.hu> @ 2005-09-03 13:29 ` Eric Van Hensbergen 2005-09-03 14:20 ` Miklos Szeredi 0 siblings, 1 reply; 4+ messages in thread From: Eric Van Hensbergen @ 2005-09-03 13:29 UTC (permalink / raw) To: Miklos Szeredi Cc: akpm, linux-kernel, fuse-devel, torvalds, V9FS Developers, Linux FS Devel On 9/3/05, Miklos Szeredi <miklos@szeredi.hu> wrote: > > > I agree that lots of people would like the functionality. I regret that > > although it appears that v9fs could provide it, > > I think you are wrong there. You don't appreciate all the complexity > FUSE _lacks_ by not being network transparent. Just look at the error > text to errno conversion muck that v9fs has. And their problems with > trying to do generic uid/gid mappings. > While FUSE doesn't handle it directly, doesn't it have to punt it to its network file systems, how to the sshfs and what not handle this sort of mapping? Not really a criticism, just curious. This doesn't so much relate to FUSE, but I've been wrestling with what to do about this chunk of (mapping) code -- it seems like it might be a good idea to have some common code shared amongst the networked file systems to handle this sort of thing. The NFS idmapd service seems overcomplicated, but something like that in the common code could provide the same level of service. What do folks think? Should someone (me?) take a whack at a common id mapping service for the kernel (or just extract idmapd from NFS) -- or is this something better implemented filesystem-to-filesystem? > > there seems to be no interest in working on that. > > It would mean adding a plethora of extensions to the 9P protocol, that > would take away all it's beauty. I think you should realize that > these are different interfaces for different purposes. There may be > some overlap, but not enough to warrant trying to massage them into > one big ball. > A very good point. I toyed with the idea of looking at creating a FUSE-API-compatible v9fs file server library - but there are a good deal of features (like extended attributes) that we don't have provisions for in the protocol -- and most likely a good deal of complexity supporting some of these features that we may not want to deal with just yet. Miklos is right, for the moment FUSE and v9fs have some overlap, but they remain very different things. FUSE is far more focused on delivering user-space file servers, and as such has a better solution for developing user-space file servers. We are still focusing on getting the core of v9fs worked out, when we eventually have that working smoothly, I like to think we'd be able to spend some time developing a file server SDK as rich as FUSE (perhaps something API-compatible as I mentioned before) -- but we want to focus on getting the core protocol implementation right first - since it has uses beyond user-space file servers. -eric ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: FUSE merging? 2005-09-03 13:29 ` FUSE merging? Eric Van Hensbergen @ 2005-09-03 14:20 ` Miklos Szeredi 2005-09-03 15:01 ` Eric Van Hensbergen 0 siblings, 1 reply; 4+ messages in thread From: Miklos Szeredi @ 2005-09-03 14:20 UTC (permalink / raw) To: ericvh Cc: akpm, linux-kernel, fuse-devel, torvalds, v9fs-developer, linux-fsdevel > While FUSE doesn't handle it directly, doesn't it have to punt it to > its network file systems, how to the sshfs and what not handle this > sort of mapping? Sshfs handles it by not handling it. In this case it is neither possible, nor needed to be able to correctly map the id space. Yes, it may confuse the user. It may even confuse the kernel for sticky directories(*). But basically it just works, and is very simple. > Not really a criticism, just curious. This doesn't so much relate > to FUSE, but I've been wrestling with what to do about this chunk of > (mapping) code -- it seems like it might be a good idea to have some > common code shared amongst the networked file systems to handle this > sort of thing. The NFS idmapd service seems overcomplicated, but > something like that in the common code could provide the same level > of service. What do folks think? Should someone (me?) take a whack > at a common id mapping service for the kernel (or just extract > idmapd from NFS) -- or is this something better implemented > filesystem-to-filesystem? If more than one filesystem would use it, it would make sense to abstract it out. FUSE doesn't need it since it can happily do the mapping in userspace. Miklos (*) I think the correct behavior would be if checking sticky permissions could also be delegated to the filesystem, like checking normal permissions can be. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: FUSE merging? 2005-09-03 14:20 ` Miklos Szeredi @ 2005-09-03 15:01 ` Eric Van Hensbergen 2005-09-03 15:38 ` Miklos Szeredi 0 siblings, 1 reply; 4+ messages in thread From: Eric Van Hensbergen @ 2005-09-03 15:01 UTC (permalink / raw) To: Miklos Szeredi Cc: akpm, linux-kernel, fuse-devel, v9fs-developer, linux-fsdevel On 9/3/05, Miklos Szeredi <miklos@szeredi.hu> wrote: > > While FUSE doesn't handle it directly, doesn't it have to punt it to > > its network file systems, how to the sshfs and what not handle this > > sort of mapping? > > Sshfs handles it by not handling it. In this case it is neither > possible, nor needed to be able to correctly map the id space. > > Yes, it may confuse the user. It may even confuse the kernel for > sticky directories(*). But basically it just works, and is very > simple. > In principal, Plan 9 file servers handle permission checking server-side, so we could likewise punt -- but it seemed a good idea to have some form of mapping for directory listings (and things like sticky directories) to make sense. -eric ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: FUSE merging? 2005-09-03 15:01 ` Eric Van Hensbergen @ 2005-09-03 15:38 ` Miklos Szeredi 0 siblings, 0 replies; 4+ messages in thread From: Miklos Szeredi @ 2005-09-03 15:38 UTC (permalink / raw) To: ericvh; +Cc: akpm, linux-kernel, fuse-devel, v9fs-developer, linux-fsdevel > > Yes, it may confuse the user. It may even confuse the kernel for > > sticky directories(*). But basically it just works, and is very > > simple. > > > > In principal, Plan 9 file servers handle permission checking > server-side, so we could likewise punt -- but it seemed a good idea to > have some form of mapping for directory listings (and things like > sticky directories) to make sense. Yes if the user/group names are available (as in 9P), then doing the mapping based on /etc/passwd for example makes sense. But sshfs only transfers the numeric uid/gid, and hence there's simply no info to base any transformation on. It could transfer /etc/passwd from the remote server, and use that to do mapping, but that is getting more complex than the problem actually warrants IMO. Miklos ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-09-03 15:38 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <E1EBJc2-0006J0-00@dorka.pomaz.szeredi.hu>
[not found] ` <20050902153440.309d41a5.akpm@osdl.org>
[not found] ` <E1EBQco-0006qr-00@dorka.pomaz.szeredi.hu>
2005-09-03 13:29 ` FUSE merging? Eric Van Hensbergen
2005-09-03 14:20 ` Miklos Szeredi
2005-09-03 15:01 ` Eric Van Hensbergen
2005-09-03 15:38 ` Miklos Szeredi
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox