Mercurial > nomad
changeset 567:e4a5e1ee05c0
objstore: volume import function stub
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> |
---|---|
date | Sat, 19 Jan 2019 21:37:43 -0500 |
parents | 6cc439510275 |
children | 90e20355f209 |
files | src/objstore/include/nomad/objstore.h src/objstore/vol.c |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/objstore/include/nomad/objstore.h Sat Jan 19 21:36:44 2019 -0500 +++ b/src/objstore/include/nomad/objstore.h Sat Jan 19 21:37:43 2019 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2018 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> + * Copyright (c) 2015-2019 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -93,6 +93,7 @@ /* volume management */ extern struct objstore *objstore_vol_create(struct objstore_vdev *vdev, const char *name); +extern int objstore_vol_import(struct objstore_vdev *vdev, struct xuuid *id); extern struct objstore *objstore_vol_lookup(const struct xuuid *volid); extern int objstore_vol_list(const struct xuuid *vdev, struct vol_info **vols, size_t *nvols);
--- a/src/objstore/vol.c Sat Jan 19 21:36:44 2019 -0500 +++ b/src/objstore/vol.c Sat Jan 19 21:37:43 2019 -0500 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2018 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> + * Copyright (c) 2015-2019 Josef 'Jeff' Sipek <jeffpc@josefsipek.net> * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal @@ -166,6 +166,11 @@ return ERR_PTR(ret); } +int objstore_vol_import(struct objstore_vdev *vdev, struct xuuid *id) +{ + return -ENOTSUP; +} + struct objstore *objstore_vol_lookup(const struct xuuid *volid) { struct objstore key = {