Lines Matching refs:rootdir
1171 _da_lock_devdb(char *rootdir) in _da_lock_devdb() argument
1183 if (rootdir == NULL) { in _da_lock_devdb()
1187 if (snprintf(path, size, "%s%s", rootdir, DA_DB_LOCK) >= size) in _da_lock_devdb()
1238 da_open_devdb(char *rootdir, FILE **dafp, FILE **dmfp, int flag) in da_open_devdb() argument
1260 if ((lockfd = _da_lock_devdb(rootdir)) == -1) in da_open_devdb()
1271 if (rootdir == NULL) { in da_open_devdb()
1274 if (snprintf(path, sizeof (path), "%s%s", rootdir, in da_open_devdb()
1304 if (rootdir == NULL) { in da_open_devdb()
1307 if (snprintf(path, sizeof (path), "%s%s", rootdir, in da_open_devdb()
1503 char *rootdir = NULL; in da_update_device() local
1517 rootdir = dargs->rootdir; in da_update_device()
1542 if (rootdir != NULL) { in da_update_device()
1543 if (snprintf(apath, sizeof (apath), "%s%s", rootdir, in da_update_device()
1547 if (snprintf(dapath, sizeof (dapath), "%s%s", rootdir, in da_update_device()
1552 if (snprintf(mpath, sizeof (mpath), "%s%s", rootdir, in da_update_device()
1556 if (snprintf(dmpath, sizeof (dmpath), "%s%s", rootdir, in da_update_device()
1576 lockfd = da_open_devdb(dargs->rootdir, &dafp, NULL, in da_update_device()
1579 lockfd = _da_lock_devdb(rootdir); in da_update_device()