bcachefs: implement FS_IOC_GETVERSION to support lsattr

In this patch we add the FS_IOC_GETVERSION ioctl for getting
i_generation from inode, after that, users can list file's
generation number by using "lsattr".

Signed-off-by: Hongbo Li <lihongbo22@huawei.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Hongbo Li 2024-06-03 21:26:18 +08:00 • committed by Kent Overstreet
commit 8a4ef7e28a