/* This function will return whether this file has been opend. */
int dfs_file_is_open(const char *pathname)
/* This function will return whether this file has been opend. */
int dfs_file_is_open(const char *pathname)
{
    char *fullpath = NULL;
    struct dfs_vnode *vnode = NULL;
    int ret = 0;
    fullpath = dfs_normalize_path(NULL, pathname);
    dfs_fm_lock();
    vnode = dfs_vnode_find(fullpath, NULL);
    if (vnode)
    {
        ret = 1;
    }
    dfs_fm_unlock();
    rt_free(fullpath);
    return ret;
}