FWIW, here's what the Linux source (in fs/xfs/libxfs/xfs_format.h) has to say about XFS (superblock) versions:
Code:
Select all
#define XFS_SB_VERSION_1 1 /* 5.3, 6.0.1, 6.1 */
#define XFS_SB_VERSION_2 2 /* 6.2 - attributes */
#define XFS_SB_VERSION_3 3 /* 6.2 - new inode version */
#define XFS_SB_VERSION_4 4 /* 6.2+ - bitmask version */
#define XFS_SB_VERSION_5 5 /* CRC enabled filesystem */
XFS V4 and above use two additional bitmask fields to specify which features are/aren't supported in a more fine-grained manner. The Linux kernel will only mount some version 4 filesystems with certain feature bits set, and filesystems with version code 5. Specifically, the directory format version 2 flag. So what SAQ called "version 2" is what the Linux kernel source calls either version 4 with the DIRV2 bitflag set, or version 5. There's a bit of info in the
XFS FAQ
about this, but not much.
Interestingly, the Linux version 5 info doesn't appear in the corresponding header (/usr/include/sys/fs/xfs_clnt.h) on IRIX. I wonder if IRIX supports it or if it's a Linux extension?
(Aside: don't you just love the way the "version 2" on-disk format was introduced with what the kernel calls "version 4"? I guess consistent numbering is over-rated.)