From 28994167a7fbbb35370b515eb72a9aaf49f58ac4 Mon Sep 17 00:00:00 2001 From: Anand Avati Date: Sat, 20 Oct 2012 00:14:13 -0700 Subject: fuse-bridge: fix posix-only configuration Recent changes in fuse-resolver had broken the use case of having a trivial configuration with only storage/posix translator. Fix it and include a regression test to avoid breakage in the future. Change-Id: I85cbcac4b5c2d3517dd03fd3dc6d07610697981b BUG: 868478 Signed-off-by: Anand Avati Reviewed-on: http://review.gluster.org/4114 Tested-by: Gluster Build System Reviewed-by: Brian Foster Reviewed-by: Vijay Bellur --- tests/basic/posixonly.t | 30 ++++++++++++++++++++++++++++++ xlators/mount/fuse/src/fuse-resolve.c | 1 + 2 files changed, 31 insertions(+) create mode 100755 tests/basic/posixonly.t diff --git a/tests/basic/posixonly.t b/tests/basic/posixonly.t new file mode 100755 index 000000000..b9de317a4 --- /dev/null +++ b/tests/basic/posixonly.t @@ -0,0 +1,30 @@ +#!/bin/bash + +. $(dirname $0)/../include.rc + +cleanup; + +TEST mkdir -p $B0/posixonly +cat > $B0/posixonly.vol <table == state->itable) { /* no graph switches since */ loc->parent = inode_ref (parent); + uuid_copy (loc->pargfid, parent->gfid); loc->inode = inode_grep (state->itable, parent, loc->name); /* nodeid for root is 1 and we blindly take the latest graph's -- cgit