Plan 9 from Bell Labs’s /usr/web/sources/contrib/rcbilson/s3venti/dat.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


#include "ventidat.h"

typedef struct S3Vhdr		S3Vhdr;
typedef struct S3Vconfig	S3Vconfig;

enum {
	HdrSize = 8*2 + 16*2,
	BlockENone = 0, BlockECompress = 1,
};

/*
 * results of parsing and initializing a config file
 */
struct S3Vconfig
{
	u32int	mem;
	int	queuewrites;
	char*	vaddr;
	uchar*	key;
	char*	bucket;
	char*	s3host;
	char*	s3port;
	char*	dcache;
	int	logfd;
};

/*
 * the header of a block stored to S3
 */
struct S3Vhdr {
	uchar blocktype;
	uchar codec;
	ushort size;
	ushort csize;
};

extern S3Vconfig config;
extern char magic[];
extern int magiclen;

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to [email protected].