class ChRootedFileSystem extends FilterFileSystem {

  @Override
  public boolean rename(final Path src, final Path dst) throws IOException {
    // note fullPath will check that paths are relative to this FileSystem.
    // Hence both are in same file system and a rename is valid
    return super.rename(fullPath(src), fullPath(dst)); 
  }

  public  ChRootedFileSystem(final URI uri, Configuration conf);

}