1 .TH llapi_changelog_recv 3 "2022-11-08" "" "Lustre User API"
3 llapi_changelog_recv, llapi_changelog_free \- Read and free a changelog records
6 .B #include <lustre/lustreapi.h>
8 .BI "int llapi_changelog_recv(void *" priv ", struct changelog_rec **" rech ");"
10 .BI "int llapi_changelog_free(struct changelog_rec **" rech ");"
15 .B llapi_changelog_recv()
16 allocates and reads the next changelog record
18 from the changelog reader instance
22 .B llapi_changelog_free()
23 releases the allocated record
27 .B llapi_changelog_start()
30 with CHANGELOG_FLAG_FOLLOW flag,
31 .B llapi_changelog_recv()
32 can block waiting for new records.
46 Insufficient memory to complete operation.
49 One or more invalid arguments are given.
52 Failed to read the changelog record on the MDT.
54 An example can be found for in lfs.c source file.
56 implements the following command:
58 .BI "lfs changelog [--follow] " MDTNAME " [" STARTREC " [" ENDREC "]]"
60 .BR lfs-changelog (1),
61 .BR llapi_changelog_clear (3),
62 .BR llapi_changelog_get_fd (3),
63 .BR llapi_changelog_in_buf (3),
64 .BR llapi_changelog_start (3),