diff --git a/headers/os/storage/Node.h b/headers/os/storage/Node.h index bb22e74fac..a7dfe84dec 100644 --- a/headers/os/storage/Node.h +++ b/headers/os/storage/Node.h @@ -16,6 +16,7 @@ struct entry_ref; struct node_ref { node_ref(); + node_ref(dev_t device, ino_t node); node_ref(const node_ref &ref); bool operator==(const node_ref &ref) const; diff --git a/src/kits/storage/Node.cpp b/src/kits/storage/Node.cpp index 1fc1fa730b..5cce99b1a7 100644 --- a/src/kits/storage/Node.cpp +++ b/src/kits/storage/Node.cpp @@ -38,7 +38,15 @@ node_ref::node_ref() { } -// copy constructor + +node_ref::node_ref(dev_t device, ino_t node) + : + device(device), + node(node) +{ +} + + node_ref::node_ref(const node_ref &ref) : device((dev_t)-1), node((ino_t)-1)