]> git.karo-electronics.de Git - linux-beck.git/commit
xfs: Extend project quotas to support 32bit project ids
authorArkadiusz Mi?kiewicz <arekm@maven.pl>
Sun, 26 Sep 2010 06:10:18 +0000 (06:10 +0000)
committerAlex Elder <aelder@sgi.com>
Mon, 18 Oct 2010 20:08:08 +0000 (15:08 -0500)
commit6743099ce57a40509a86849a22317ed4b7516911
treec26c8192713b02cc7a96a4094dcf896395cc7f81
parent1a1a3e97bad42e92cd2f32e81c396c8ee0bddb28
xfs: Extend project quotas to support 32bit project ids

This patch adds support for 32bit project quota identifiers.

On disk format is backward compatible with 16bit projid numbers. projid
on disk is now kept in two 16bit values - di_projid_lo (which holds the
same position as old 16bit projid value) and new di_projid_hi (takes
existing padding) and converts from/to 32bit value on the fly.

xfs_admin (for existing fs), mkfs.xfs (for new fs) needs to be used
to enable PROJID32BIT support.

Signed-off-by: Arkadiusz Miƛkiewicz <arekm@maven.pl>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Alex Elder <aelder@sgi.com>
16 files changed:
fs/xfs/linux-2.6/xfs_ioctl.c
fs/xfs/linux-2.6/xfs_ioctl32.c
fs/xfs/linux-2.6/xfs_ioctl32.h
fs/xfs/linux-2.6/xfs_linux.h
fs/xfs/quota/xfs_qm.c
fs/xfs/quota/xfs_qm_bhv.c
fs/xfs/quota/xfs_qm_syscalls.c
fs/xfs/xfs_dinode.h
fs/xfs/xfs_fs.h
fs/xfs/xfs_inode.c
fs/xfs/xfs_inode.h
fs/xfs/xfs_itable.c
fs/xfs/xfs_rename.c
fs/xfs/xfs_sb.h
fs/xfs/xfs_types.h
fs/xfs/xfs_vnodeops.c