From 846abdb265aa2673816fbf5f8e515c62d443a84b Mon Sep 17 00:00:00 2001 From: Michael Larson Date: Wed, 19 May 2010 14:54:44 -0700 Subject: modified tag limit == 1. Now when set this node will only allow a single instance. todo update the parsing structure to support a signed value to support embedded tag node value of 1 (current behavior)--will address this in the future (or when this behavior is requested). --- src/common/unionfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/common') diff --git a/src/common/unionfs.c b/src/common/unionfs.c index 151c6ce..2f7cd70 100644 --- a/src/common/unionfs.c +++ b/src/common/unionfs.c @@ -227,10 +227,10 @@ retrieve_data(char* rel_data_path, GNode *node, char* root, NODE_OPERATION op) //either multi or tag--shouldn't have made a difference, but arkady was confused. vn->_config._multi = (def.tag | def.multi); - if (def.def_tag > 0) { + if (def.def_tag != 0) { vn->_config._limit = def.def_tag; } - else if (def.def_multi > 0) { + else if (def.def_multi != 0) { vn->_config._limit = def.def_multi; } else { -- cgit v1.2.3