Re: [PATCH] Send quota messages via netlink

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: <linux-kernel@...>, Balbir Singh <balbir@...>, Serge E. Hallyn <serue@...>, Eric W. Biederman <ebiederm@...>, <containers@...>
Date: Wednesday, August 29, 2007 - 8:26 am

On Tue 28-08-07 21:13:35, Andrew Morton wrote:
  Oops, forgotten about it. I'll write one. Do we have some standard place
where to document such interfaces? I could create some file in
Documentation/filesystems/ but that seems a bit superfluous...

  I use "generic netlink", which is in fact a layer built on top of
netlink. As far as I've read it's documentation, creating a message
argument by argument is the preferred way. As David writes, this way
we can add new arguments without worries about backward compatibility,
alignment issues or such things.

  We don't need a version for future additions. Also each attribute sent
has its identifier (e.g. QUOTA_NL_A_CAUSED_ID) and userspace checks these
identifiers and unknown attributes are ignored. But in case we would like
to remove some attribute, versioning would be probably useful so that
userspace won't break silently... So I'll add it.

  No, we don't need it as I wrote above.

  I also find major/minor pair a bit old-fashioned. But the identifying it
by a mountpoint is problematic - quota does not care about namespaces and
such and so it works with superblocks. It's not trivial to get a mountpoint
from a superblock (and generally it's frown upon, isn't it?). Also if a
filesystem is mounted on several places, we have to pick one (OK, userspace
has to do this choice anyway when displaying the message but still...).

  I know there's something going on in this area but I don't know any
details. If somebody has some advice what should be passed into userspace
so that user/group can be idenitified, it is welcome.
  
  Probably yes. Added.

  Thanks for all your comments.

									Honza
-- 
Jan Kara <jack@suse.cz>
SuSE CR Labs
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Send quota messages via netlink, Jan Kara, (Tue Aug 28, 10:13 am)
Re: [PATCH] Send quota messages via netlink, Andrew Morton, (Wed Aug 29, 12:51 am)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Mon Sep 3, 10:43 am)
Re: [PATCH] Send quota messages via netlink, Randy Dunlap, (Mon Sep 3, 1:12 pm)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Mon Sep 3, 1:48 pm)
Re: [PATCH] Send quota messages via netlink, Andrew Morton, (Mon Sep 3, 2:41 pm)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Wed Aug 29, 6:03 am)
Re: [PATCH] Send quota messages via netlink, Andrew Morton, (Wed Aug 29, 12:13 am)
Re: [PATCH] Send quota messages via netlink, Eric W. Biederman, (Wed Aug 29, 1:41 am)
Re: [PATCH] Send quota messages via netlink, Balbir Singh, (Wed Aug 29, 2:30 am)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Wed Aug 29, 8:46 am)
Re: [PATCH] Send quota messages via netlink, Balbir Singh, (Fri Aug 31, 2:59 am)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Mon Sep 3, 6:18 am)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Wed Aug 29, 8:26 am)
Re: [PATCH] Send quota messages via netlink, Eric W. Biederman, (Wed Aug 29, 2:31 pm)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Wed Aug 29, 3:26 pm)
Re: [PATCH] Send quota messages via netlink, Eric W. Biederman, (Wed Aug 29, 5:06 pm)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Thu Aug 30, 5:25 am)
Re: [PATCH] Send quota messages via netlink, Eric W. Biederman, (Thu Aug 30, 1:33 pm)
Re: [PATCH] Send quota messages via netlink, Serge E. Hallyn, (Thu Aug 30, 3:18 pm)
Re: [PATCH] Send quota messages via netlink, Serge E. Hallyn, (Thu Aug 30, 2:54 pm)
Re: [PATCH] Send quota messages via netlink, Serge E. Hallyn, (Thu Aug 30, 3:10 pm)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Thu Aug 30, 6:18 pm)
Re: [PATCH] Send quota messages via netlink, Serge E. Hallyn, (Thu Aug 30, 6:14 pm)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Mon Sep 3, 10:21 am)
Re: [PATCH] Send quota messages via netlink, Serge E. Hallyn, (Tue Sep 4, 5:32 pm)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Tue Sep 4, 6:49 pm)
Re: [PATCH] Send quota messages via netlink, Serge E. Hallyn, (Tue Sep 4, 7:48 pm)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Wed Sep 5, 9:32 am)
Re: [PATCH] Send quota messages via netlink, Serge E. Hallyn, (Wed Sep 5, 10:28 am)
Re: [PATCH] Send quota messages via netlink, Randy Dunlap, (Wed Aug 29, 11:57 am)
Re: [PATCH] Send quota messages via netlink, David Miller, (Wed Aug 29, 12:54 am)