linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/4] RFC: introduce extended inode owner identifier v7
@ 2010-10-29 13:03 Dmitry Monakhov
  2010-10-29 13:03 ` [PATCH 1/4] vfs: Add additional owner identifier Dmitry Monakhov
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: Dmitry Monakhov @ 2010-10-29 13:03 UTC (permalink / raw)
  To: linux-fsdevel; +Cc: viro, jack, linux-ext4, Dmitry Monakhov

*Feature description*
1) Inode may has a project identifier which has same meaning as uid/gid.
2) Id is stored in inode's xattr named "system.project_id"
3) Id is inherent from parent inode on creation.
4) This id is cached in memory fs_inode structure and may be accessible
   via s_op->get_prjid(). This field it restricted by CONFIG_PROJECT_ID.
   So no wasting of memory happens.

5) Since id is cached in memory it may be used for different purposes
   such as:
5A) Implement additional quota id space orthogonal to uid/gid. This is
    useful in managing quota for some filesystem hierarchy(chroot or
    container over bindmount)
5B) Export dedicated fs hierarchy (only inode which has some project_id
    will be accessible)

*User interface *
Project id is managed via generic xattr interface "system.project_id"
This good because
 1) We may use already existing interface.
 2) xattr already supported by generic utilities tar/rsync and etc

PATCH SET TOC:
1) generic projectid support
2) generic project quota support
3) ext4 project support implementation
 3A) ext4: generic project support
 3B) ext4: project quota support

Patch against -next-20101028.
Actually vfs part is really small, and most changes happen in ext4-tree

Changes against v6
 - get rid of iattr stuff, current __dquot_transfer() provides sane interface
   for quota manipulation. i_prjid can must be changed only by fs-speciffic
   methods so only get() method is really necessery.
 - remove #ifdef tricks from generic code.
 - move i_prjid from vfs_inode to fs_inode, to prevent inode bloating.
 - get rid of isolation logic, because this feature confuse most users.
Changes against v5
 - convert dquota_transfer to struct iattr interface. Not it is possible
   to change i_prjid via notify_changes()
 - some bugfixes.


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-11-19  5:51 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-29 13:03 [PATCH 0/4] RFC: introduce extended inode owner identifier v7 Dmitry Monakhov
2010-10-29 13:03 ` [PATCH 1/4] vfs: Add additional owner identifier Dmitry Monakhov
2010-10-29 13:03 ` [PATCH 2/4] quota: Implement project id support for generic quota Dmitry Monakhov
2010-10-29 13:03 ` [PATCH 3/4] ext4: Implement project ID support for ext4 filesystem Dmitry Monakhov
2010-10-29 13:03 ` [PATCH 4/4] ext4: add project quota support Dmitry Monakhov
2010-11-19  5:51 ` Ping [PATCH 0/4] RFC: introduce extended inode owner identifier v7 Dmitry

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).