]> www.infradead.org Git - users/hch/xfsprogs.git/commit
libxfs: implement get_random_u32
authorDarrick J. Wong <djwong@kernel.org>
Wed, 2 Oct 2024 01:13:02 +0000 (18:13 -0700)
committerAndrey Albershteyn <aalbersh@redhat.com>
Fri, 4 Oct 2024 10:42:07 +0000 (12:42 +0200)
commit2e85cabb0ee996f47dd013e63bf3e6610bbc7b8e
treea7c5895e0ef3708de8a8184454e20021674daf35
parentb47055a465deceb27224e841dafe0d487bfce095
libxfs: implement get_random_u32

Actually query the kernel for some random bytes instead of returning
zero, if that's possible.  The most noticeable effect of this is that
mkfs will now create the rtbitmap file, the rtsummary file, and children
of the root directory with a nonzero generation.  Apparently xfsdump
requires that the root directory have a generation number of zero.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
configure.ac
include/builddefs.in
libxfs/Makefile
libxfs/libxfs_priv.h
libxfs/util.c
m4/package_libcdev.m4
mkfs/proto.c