查看文件inode xfs_db> inode 131 xfs_db> p core.magic = 0x494e core.mode = 0100644 core.version = 2 打印文件系统剩余空间: xfs_db>freespfromto extents blocks pct111291290.008153240.0064127131146820.001282553556130.0025651138920.00512102319810.00102420477101780.0020484095381920.00409681914240220.00819216383141766...
(freehdr.firstdb + i) * args->geo->fsbcount, -1, &dbp); if (!xfs_scrub_fblock_process_error(sc, XFS_DATA_FORK, lblk, &error)) continue; xfs_scrub_directory_check_freesp(sc, lblk, dbp, best); xfs_trans_brelse(sc->tp, dbp); ...
root of the free inode btree */__be32agi_free_level;/* levels in free inode btree */__be32agi_iblocks;/* inobt blocks used */__be32agi_fblocks;/* finobt blocks used *//* structure must be padded to 64 bit alignment */}xfs_agi_t; 一个现实中的XFS的AGI在存储介质上的存储形式...
for which see thefreespcommand). Every file in the filesystem is examined to see how far from ideal its extent mappings are. A summary is printed giving the totals.
-c specifies that freesp will search the by-size (cnt) space Btree instead of the default by-block (bno) space Btree. -d specifies that every free extent will be displayed. -e specifies that the histogram buckets are equal-sized, with the size specified as i. -h specifies a starting ...
specifies thatfreespwill search the by-size (cnt) space Btree instead of the default by-block (bno) space Btree. -d specifies that every free extent will be displayed. -e specifies that the histogram buckets are equal-sized, with the size specified asi. ...
git-init-db(1) git-init(1) git-instaweb(1) git-log(1) git-lost-found(1) git-ls-files(1) git-ls-remote(1) git-ls-tree(1) git-mailinfo(1) git-mailsplit(1) git-merge-base(1) git-merge-file(1) git-merge-index(1) git-merge-one-file(1) git-merge-tree(1) git-merge(1...
git-init-db(1) git-init(1) git-instaweb(1) git-log(1) git-lost-found(1) git-ls-files(1) git-ls-remote(1) git-ls-tree(1) git-mailinfo(1) git-mailsplit(1) git-merge-base(1) git-merge-file(1) git-merge-index(1) git-merge-one-file(1) git-merge-tree(1) git-merge(1...
(bno >= XFS_DIR2_LEAF_FIRSTDB(mp) && bno < XFS_DIR2_FREE_FIRSTDB(mp)); error = xfs_da_get_buf(tp, dp, xfs_dir2_db_to_da(mp, bno), -1, &bp, XFS_DATA_FORK); if (error) return error; xfs_dir3_leaf_init(mp, tp, bp, dp->i_ino, magic); xfs_dir3_leaf_log_...
xfs_db> sbxfs_db> p 2.3.2 AGF管理(AG Free Space Management) XFS文件系统通过两个B+树来追踪空闲空间,一个是基于块编号索引,另一个是基于空闲块的大小索引。这种方案使XFS可以快速的找到邻近给定块编号或大小的空闲空间。所有的块编号、索引、数量都是相对于AG的。 2.3.2.1 AGF块(AG Free Space Block)...