buf holds the path:
so it should be open_bmap=bmap_create(buf);