Mercurial > nomad
changeset 821:d0c9f6b1d009
common: renumber some file related fs RPCs
This creates two holes - one for LINK and one for RENAME.
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Mon, 13 Apr 2020 15:46:30 -0400 |
parents | 94274e0d4dbe |
children | 025b8d68c981 |
files | docs/fs-protocol.md src/common/include/nomad/rpc_fs.h |
diffstat | 2 files changed, 17 insertions(+), 17 deletions(-) [+] |
line wrap: on
line diff
--- a/docs/fs-protocol.md Mon Apr 13 15:42:18 2020 -0400 +++ b/docs/fs-protocol.md Mon Apr 13 15:46:30 2020 -0400 @@ -145,7 +145,7 @@ Fails with `EPROTO` if the client hasn't gotten a successful LOGIN. -UNLINK (0x0005) +UNLINK (0x0006) =============== Given a directory open file handle, a path component (string), and an @@ -173,7 +173,7 @@ Fails with `EPROTO` if the client hasn't gotten a successful LOGIN. -OPEN (0x0006) +OPEN (0x0008) ============= Given a version of an object (oid and vector clock, or inode number and @@ -200,7 +200,7 @@ Fails with `EPROTO` if the client hasn't gotten a successful LOGIN. -CLOSE (0x0007) +CLOSE (0x0009) ============== Close an open file handle. If the handle supplied has not be open via the @@ -219,7 +219,7 @@ Fails with `EPROTO` if the client hasn't gotten a successful LOGIN. -READ (0x0008) +READ (0x000A) ============= Read a portion of an open object. Trying to read from a directory fails with @@ -244,7 +244,7 @@ Fails with `EPROTO` if the client hasn't gotten a successful LOGIN. -WRITE (0x0009) +WRITE (0x000B) ============== Write a portion of an open object. Trying to write to a directory fails with @@ -267,7 +267,7 @@ Fails with `EPROTO` if the client hasn't gotten a successful LOGIN. -SETATTR (0x000A) +SETATTR (0x000C) ================ Set selected attributes on an open object. Even though the entire attribute @@ -298,7 +298,7 @@ Fails with `EPROTO` if the client hasn't gotten a successful LOGIN. -GETDENT (0x000B) +GETDENT (0x000D) ================ Get the directory entry at a specific offset in a directory. Additionally, @@ -321,7 +321,7 @@ Fails with `EPROTO` if the client hasn't gotten a successful LOGIN. -OBJ_INFO (0x000C) +OBJ_INFO (0x000E) ================= Get information about an object.
--- a/src/common/include/nomad/rpc_fs.h Mon Apr 13 15:42:18 2020 -0400 +++ b/src/common/include/nomad/rpc_fs.h Mon Apr 13 15:46:30 2020 -0400 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2019 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> + * Copyright (c) 2015-2020 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> * Copyright (c) 2016 Steve Dougherty * * Permission is hereby granted, free of charge, to any person obtaining a copy @@ -34,14 +34,14 @@ #define NRPC_GETATTR 0x0002 #define NRPC_LOOKUP 0x0003 #define NRPC_CREATE 0x0004 -#define NRPC_UNLINK 0x0005 -#define NRPC_OPEN 0x0006 -#define NRPC_CLOSE 0x0007 -#define NRPC_READ 0x0008 -#define NRPC_WRITE 0x0009 -#define NRPC_SETATTR 0x000A -#define NRPC_GETDENT 0x000B -#define NRPC_OBJ_INFO 0x000C +#define NRPC_UNLINK 0x0006 +#define NRPC_OPEN 0x0008 +#define NRPC_CLOSE 0x0009 +#define NRPC_READ 0x000A +#define NRPC_WRITE 0x000B +#define NRPC_SETATTR 0x000C +#define NRPC_GETDENT 0x000D +#define NRPC_OBJ_INFO 0x000E #define NRPC_VDEV_IMPORT 0x0100 #define NRPC_VDEV_LIST 0x0101 #define NRPC_VOL_CREATE 0x0200