]>
www.infradead.org Git - users/dhowells/kafs-utils.git/log
summary |
shortlog | log |
commit |
commitdiff |
tree
first ⋅ prev ⋅ next
David Howells [Wed, 26 Aug 2020 08:57:22 +0000 (09:57 +0100)]
Implement a magic-pointer
Implement a magic-pointer that manages objects based on a refcount held in
the pointed-to object.
The following classes are implemented:
(*) refcount
This class holds the refcount and is intended to be subclassed by any
object that will be pointed to.
(*) ref<to_class>
This is a template pointer class that pins a reference on the object
it points to, which must be of or derived from type to_class.
to_class must be derived from class refcount.
(*) pointer<to_class>
This is like ref<to_class> but doesn't pin a reference. It has no
copy constructor, thereby allowing it to be passed in a register as an
argument or a return value.
(*) opaque_ref
This class points to any object derived from class refcount and will
pin a reference on the object.
(*) opaque_pointer
This is like class opaque_ref, but doesn't pin a reference. It has no
copy constructor, thereby allowing it to be passed in a register as an
argument or a return value.
Objects can be assigned between any pair of classes. Assigning from an
opaque ref/pointer to a template-typed ref/pointer will dynamic_cast the
value (if it's not NULL).
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Wed, 26 Aug 2020 09:11:44 +0000 (10:11 +0100)]
Adjust .xg files
David Howells [Fri, 10 Jul 2020 12:10:26 +0000 (13:10 +0100)]
xg: Add YFS Volume Server operations
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Mon, 6 Jul 2020 21:00:10 +0000 (22:00 +0100)]
xg: Add a def for the VOLSER.GetCapabilities RPC call
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Mon, 29 Jun 2020 08:59:27 +0000 (09:59 +0100)]
xg: Fix struct afsUUID
Fix struct afsUUID so that the single byte elements are signed so that they
get sign-extended when encoded to 32-bit values.
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Mon, 29 Jun 2020 08:57:54 +0000 (09:57 +0100)]
xg: Add YFS VL server operations
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Thu, 25 Jun 2020 12:25:02 +0000 (13:25 +0100)]
xg: Remove the package name from YFS RPCs
Remove the package name from YFS RPCs so that they don't end up duplicated
in the generated code.
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Tue, 30 Jun 2020 15:29:01 +0000 (16:29 +0100)]
xg: Fix vldb.xg
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Mon, 7 Oct 2019 16:45:09 +0000 (17:45 +0100)]
xg: Tidy up YFS definitions
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Mon, 7 Oct 2019 16:01:57 +0000 (17:01 +0100)]
xg: Add AuriStor/YFS definitions
Add definitions for AuriStor/YFS protocol extensions.
David Howells [Wed, 9 Oct 2019 15:55:53 +0000 (16:55 +0100)]
xg: Permit the U-variant VLDB operations
Permit such VLDB operations as VL.GetEntryByNameU.
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Tue, 23 Jun 2020 16:49:40 +0000 (17:49 +0100)]
xg: Remove 'bulk' typedef from vldb.xg
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Tue, 23 Jun 2020 16:48:03 +0000 (17:48 +0100)]
xg: Define VL.GetCapabilities
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Mon, 21 Oct 2019 11:08:37 +0000 (12:08 +0100)]
xg: Tag VL.LinkedListN with its symbolic opcode
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Mon, 30 Sep 2019 09:04:05 +0000 (10:04 +0100)]
xg: Add UAE error constants
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Mon, 30 Sep 2019 09:03:14 +0000 (10:03 +0100)]
xg: Remove _AFSUUID_COMMON_ guards
Remove the _AFSUUID_COMMON_ guards from afsuuid.h.
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Mon, 30 Sep 2019 09:01:01 +0000 (10:01 +0100)]
xg: Conditionalise out unused bits
Conditionalise out unused structures so as not to emit codecs for them.
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Thu, 26 Sep 2019 13:22:36 +0000 (14:22 +0100)]
xg: Remove "a_" prefixes and "P" suffixes from argument names
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Wed, 7 Feb 2018 06:55:16 +0000 (06:55 +0000)]
xg: Define VOLSER.GetSize
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Wed, 13 Aug 2014 13:58:45 +0000 (14:58 +0100)]
xg: Strip AFSVol prefixes from RPC call names in volumeserver.xg
Strip AFSVol prefixes from RPC call names in volumeserver.xg as they're
redundant given that the the xg compiler prefixes them with the package
name.
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Thu, 26 Sep 2019 10:20:17 +0000 (11:20 +0100)]
xg: Convert prname to struct
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Thu, 26 Sep 2019 10:19:36 +0000 (11:19 +0100)]
xg: Convert serverList to struct
David Howells [Thu, 26 Sep 2019 10:13:35 +0000 (11:13 +0100)]
xg: Add pointer marker to struct args
David Howells [Thu, 26 Sep 2019 10:09:14 +0000 (11:09 +0100)]
xg: Remove 'struct' from argument type specifications
Remove 'struct' from argument type specifications as it's not used
consistently and it seems it should be dispensible.
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Thu, 26 Sep 2019 10:06:42 +0000 (11:06 +0100)]
xg: Switch AFS_MAX_DESTINATIONS from #define to const int
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Thu, 26 Sep 2019 10:03:42 +0000 (11:03 +0100)]
xg: Remove ASIS keyword
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Thu, 26 Sep 2019 10:01:19 +0000 (11:01 +0100)]
xg: Remove AFSUUID_GENERATE
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Thu, 26 Sep 2019 09:59:59 +0000 (10:59 +0100)]
xg: Remove HASHSIZE defs as these should be server internal
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Thu, 26 Sep 2019 09:45:36 +0000 (10:45 +0100)]
xg: Add size markers
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Wed, 25 Sep 2019 16:26:24 +0000 (17:26 +0100)]
xg: Declare RXKAD abort messages
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Wed, 25 Sep 2019 16:19:55 +0000 (17:19 +0100)]
xg: Supply standard Rx error codes
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Wed, 25 Sep 2019 16:24:04 +0000 (17:24 +0100)]
xg: Label KA_ package in the .xg file
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Wed, 25 Sep 2019 15:32:05 +0000 (16:32 +0100)]
xg: More cleanups
More cleanups to the xg files.
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Wed, 25 Sep 2019 15:31:40 +0000 (16:31 +0100)]
xg: Reindent the xg files
Reindent the xg files to use tabs.
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Wed, 25 Sep 2019 15:31:26 +0000 (16:31 +0100)]
xg: All integer types should be in terms of stdint
All integer types should be in terms of stdint:
int8_t uint8_t
int16_t uint16_t
int32_t uint32_t
int64_t uint64_t
Long should not be used as it may be 32-bits or 64-bits.
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Wed, 25 Sep 2019 16:01:41 +0000 (17:01 +0100)]
xg: Convert to UTF-8 to keep Python happy
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Wed, 25 Sep 2019 15:31:16 +0000 (16:31 +0100)]
xg: Clean up Arla xg files
Clean up Arla xg files to remove CVS-isms and Arla-specific bits.
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Wed, 25 Sep 2019 15:31:08 +0000 (16:31 +0100)]
Import the Arla XG files
Import the Arla XG files. These are RxRPC RPC API definitions for rxgen to
turn into compilables.
They are licensed under the 3-clause BSD licence from Royal Institute of
Technology, Stockholm, Sweden, which is GPL-compatible.
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Wed, 25 Sep 2019 15:29:08 +0000 (16:29 +0100)]
Add a Developer's Certificate of Origin
Add a Developer's Certificate of Origin for the use of people submitting
patches.
Signed-off-by: David Howells <dhowells@redhat.com>
David Howells [Wed, 8 Jan 2014 21:15:54 +0000 (21:15 +0000)]
Initial revision