Re: sysfs: tagged directories not merged completely yet

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Tejun Heo
Date: Wednesday, October 15, 2008 - 4:04 am

Eric W. Biederman wrote:

Well, you can modify the information too.  FUSE can easily present
ethN as eth0 of a namespace.  I don't know how it will play out with
the actual network interfaces tho.


I was thinking about just letting them be ethN with unique Ns and
letting FUSE server present some of them as ethX on namespaces.


Some of the timestamps are not on the sysfs_dirent because 1. nobody
cared (the original sd implementation didn't preserve it) and
2. of memory overhead.


FWIW, I think it would be just fine to invalidate the renamed dentry.


Right, great.  :-)


Yeap, let's think about optimization later.  The problem hasn't come
up yet even on machines where the memory footprint of sysfs dentries
and inodes posed serious problems, so I don't think optimizing it is a
high priority at this point.


Well, I suppose most of that blame falls on me but I still can't bring
myself to agree with the current implementation.  The biggest problem
I have is that the implementation doesn't really show in straight
forward manner what it tries to achieve (showing partial tree
depending on sb).


Getting the clean up part in usually isn't a problem, right?  But
getting in the actual namespace part is (and should be).


As ugly as it is, it's designed to export internal data structure
as-is to userland and bound tightly with the driver model in
not-so-orthodox way, so it's not very inclined to dance at the tune of
namespaces.  :-)


Other than the scaling argument which probably applies mostly to the
hosting people, I also find other usages interesting but not sure how
popular they would be.


As I wrote above, FUSE can modify or create data in-flight, but it's
not like proc and sysfs are the only ones which need to be changed, so
it might not matter after all.


Thanks.

-- 
tejun
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
sysfs: tagged directories not merged completely yet, Benjamin Thery, (Mon Sep 22, 7:31 am)
Re: sysfs: tagged directories not merged completely yet, Eric W. Biederman, (Mon Sep 22, 1:24 pm)
Re: sysfs: tagged directories not merged completely yet, Benjamin Thery, (Tue Sep 23, 7:24 am)
Re: sysfs: tagged directories not merged completely yet, Eric W. Biederman, (Tue Sep 23, 11:23 am)
Re: sysfs: tagged directories not merged completely yet, Eric W. Biederman, (Tue Oct 7, 1:08 am)
Re: sysfs: tagged directories not merged completely yet, Eric W. Biederman, (Tue Oct 7, 1:27 am)
Re: sysfs: tagged directories not merged completely yet, Daniel Lezcano, (Tue Oct 7, 2:01 am)
[PATCH 0/3] minor sysfs tagged directory fixes, Eric W. Biederman, (Tue Oct 7, 3:47 am)
[PATCH 1/3] sysfs: Remove lock ordering violation in sysf ..., Eric W. Biederman, (Tue Oct 7, 3:49 am)
[PATCH 2/3] sysfs: Fix and sysfs_mv_dir by using lock_rename., Eric W. Biederman, (Tue Oct 7, 3:51 am)
Re: sysfs: tagged directories not merged completely yet, Eric W. Biederman, (Tue Oct 7, 4:56 am)
Re: [PATCH 1/3] sysfs: Remove lock ordering violation in ..., Eric W. Biederman, (Tue Oct 7, 3:31 pm)
Re: sysfs: tagged directories not merged completely yet, Serge E. Hallyn, (Tue Oct 7, 3:54 pm)
Re: sysfs: tagged directories not merged completely yet, Eric W. Biederman, (Tue Oct 7, 5:04 pm)
Re: sysfs: tagged directories not merged completely yet, Serge E. Hallyn, (Tue Oct 7, 5:12 pm)
Re: sysfs: tagged directories not merged completely yet, Eric W. Biederman, (Tue Oct 7, 5:39 pm)
Re: sysfs: tagged directories not merged completely yet, Eric W. Biederman, (Tue Oct 7, 5:58 pm)
Re: sysfs: tagged directories not merged completely yet, Eric W. Biederman, (Tue Oct 7, 6:29 pm)
Re: sysfs: tagged directories not merged completely yet, Serge E. Hallyn, (Wed Oct 8, 7:18 am)
Re: sysfs: tagged directories not merged completely yet, Eric W. Biederman, (Mon Oct 13, 6:11 pm)
Re: sysfs: tagged directories not merged completely yet, Eric W. Biederman, (Tue Oct 14, 5:19 am)
Re: sysfs: tagged directories not merged completely yet, Serge E. Hallyn, (Tue Oct 14, 11:53 am)
Re: sysfs: tagged directories not merged completely yet, Eric W. Biederman, (Tue Oct 14, 5:48 pm)
Re: sysfs: tagged directories not merged completely yet, Tejun Heo, (Wed Oct 15, 4:04 am)
Re: sysfs: tagged directories not merged completely yet, Serge E. Hallyn, (Wed Oct 15, 6:42 am)
Re: sysfs: tagged directories not merged completely yet, Benjamin Thery, (Wed Oct 15, 6:54 am)
Re: sysfs: tagged directories not merged completely yet, Eric W. Biederman, (Thu Oct 16, 2:58 pm)