Skip to content

Commit

Permalink
Version 8.3.0.73
Browse files Browse the repository at this point in the history
- Fix unterminated string initialization.
- Minor file reorganization.

Signed-off-by: Matthew Sakai <[email protected]>
  • Loading branch information
lorelei-sakai committed Jan 29, 2025
1 parent 64786b7 commit 0d72b56
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 11 deletions.
2 changes: 1 addition & 1 deletion utils/uds/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# 02110-1301, USA.
#

BUILD_VERSION = 8.3.0.72
BUILD_VERSION = 8.3.0.73

DEPDIR = .deps

Expand Down
5 changes: 3 additions & 2 deletions utils/uds/index-layout.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@
* Each save also has a unique nonce.
*/

#define MAGIC_SIZE 32
#define NONCE_INFO_SIZE 32
#define MAX_SAVES 2

Expand Down Expand Up @@ -98,9 +97,11 @@ enum region_type {
#define SUPER_VERSION_CURRENT 3
#define SUPER_VERSION_MAXIMUM 7

static const u8 LAYOUT_MAGIC[MAGIC_SIZE] = "*ALBIREO*SINGLE*FILE*LAYOUT*001*";
static const u8 LAYOUT_MAGIC[] = "*ALBIREO*SINGLE*FILE*LAYOUT*001*";
static const u64 REGION_MAGIC = 0x416c6252676e3031; /* 'AlbRgn01' */

#define MAGIC_SIZE (sizeof(LAYOUT_MAGIC) - 1)

struct region_header {
u64 magic;
u64 region_blocks;
Expand Down
6 changes: 3 additions & 3 deletions utils/uds/asm/unaligned.h → utils/uds/linux/unaligned.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
* 02110-1301, USA.
*/

#ifndef ASM_UNALIGNED_H
#define ASM_UNALIGNED_H
#ifndef LINUX_UNALIGNED_H
#define LINUX_UNALIGNED_H

#include <asm/byteorder.h>
#include <linux/types.h>
Expand Down Expand Up @@ -134,4 +134,4 @@ static inline void put_unaligned_be64(uint64_t val, void *p)
*((__be64 *)p) = __cpu_to_be64(val);
}

#endif /* ASM_UNALIGNED_H */
#endif /* LINUX_UNALIGNED_H */
2 changes: 1 addition & 1 deletion utils/uds/murmurhash3.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "murmurhash3.h"

#include <asm/unaligned.h>
#include <linux/unaligned.h>

static inline u64 rotl64(u64 x, s8 r)
{
Expand Down
2 changes: 1 addition & 1 deletion utils/uds/numeric.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#ifndef UDS_NUMERIC_H
#define UDS_NUMERIC_H

#include <asm/unaligned.h>
#include <linux/unaligned.h>
#include <linux/types.h>

/*
Expand Down
5 changes: 5 additions & 0 deletions utils/uds/time-utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,9 @@ static inline s64 ktime_to_us(ktime_t reltime)
return reltime / NSEC_PER_USEC;
}

static inline ktime_t us_to_ktime(u64 microseconds)
{
return (ktime_t) microseconds * NSEC_PER_USEC;
}

#endif /* UDS_TIME_UTILS_H */
2 changes: 1 addition & 1 deletion utils/vdo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# 02110-1301, USA.
#

VDO_VERSION = 8.3.0.72
VDO_VERSION = 8.3.0.73

UDS_DIR = ../uds

Expand Down
4 changes: 2 additions & 2 deletions vdo.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

Summary: Management tools for Virtual Data Optimizer
Name: vdo
Version: 8.3.0.72
Version: 8.3.0.73
Release: %{spec_release}%{?dist}

License: GPL-2.0-only
Expand Down Expand Up @@ -98,5 +98,5 @@ make install DESTDIR=$RPM_BUILD_ROOT INSTALLOWNER= name=%{name} bindir=%{_bindir
%{_mandir}/man8/vdorecover.8*

%changelog
* Tue Oct 15 2024 - Red Hat VDO Team <[email protected]> - 8.3.0.72-1
* Tue Jan 28 2025 - Red Hat VDO Team <[email protected]> - 8.3.0.73-1
- See https://github.com/dm-vdo/vdo.git

0 comments on commit 0d72b56

Please sign in to comment.