Whamcloud - gitweb
mke2fs: Add extended option to select quota type
authorAditya Kali <adityakali@google.com>
Mon, 14 Nov 2011 15:55:54 +0000 (10:55 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 14 Nov 2011 15:55:54 +0000 (10:55 -0500)
commitd678fef0d78fb3c5546cd9398698ddc0106618f6
tree8b9f7382db070bae4d545dd33ccc07ef2978ae0b
parentd7c6f4e6d067a3547379acb0d7ef9e95038bef28
mke2fs: Add extended option to select quota type

mke2fs was creating both user and group quota inodes on enabling
the quota feature. This patch adds the extended option 'quotatype'
that can be used to exclusively specify the quota type that the
user wants to initialize.

 # Ex: Default behavior without extended option creates both
 # user and group quota inodes:
 $ mke2fs -t ext4 -O quota /dev/ram1

 # To enable only user quotas:
 $ mke2fs -t ext4 -O quota -E quotatype=usr /dev/ram1
 # To enable only group quotas:
 $ mke2fs -t ext4 -O quota -E quotatype=grp /dev/ram1

Signed-off-by: Aditya Kali <adityakali@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/mke2fs.8.in
misc/mke2fs.c