]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs: Add xfs_log_rlimit.c
authorDave Chinner <dchinner@redhat.com>
Wed, 4 Sep 2013 22:05:50 +0000 (22:05 +0000)
committerRich Johnston <rjohnston@sgi.com>
Mon, 16 Sep 2013 20:14:46 +0000 (15:14 -0500)
commit88cd79be1aa1f6947d20da102fbf5bb128d70ce1
tree150a4e89ed9f2bf3fb5cd127efd9087198168e42
parentae56d017048adcdb355b95d5e42a3cb67af6ab54
xfs: Add xfs_log_rlimit.c

Add source files for xfs_log_rlimit.c The new file is used for log
size calculations and validation shared with userspace.

[dchinner: xfs_log_calc_max_attrsetm_res() does not modify the
tr_attrsetm reservation, just calculates the maximum. ]

[dchinner: rework loop in xfs_log_get_max_trans_res() ]

[dchinner: implement xfs_log_calc_unit_res() in util.c to give mkfs
a worse case calculation of the log size needed. ]

Signed-off-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
include/xfs_fs.h
include/xfs_log_format.h
libxfs/Makefile
libxfs/util.c
libxfs/xfs.h
libxfs/xfs_log_rlimit.c [new file with mode: 0644]
mkfs/maxtrres.c
mkfs/xfs_mkfs.c
mkfs/xfs_mkfs.h