Lines Matching refs:lvm_device
277 static dev_t lvm_get_devno(const char *lvm_device) in lvm_get_devno() argument
284 DBG(DEBUG_DEVNAME, printf("opening %s\n", lvm_device)); in lvm_get_devno()
285 if ((lvf = fopen(lvm_device, "r")) == NULL) { in lvm_get_devno()
286 DBG(DEBUG_DEVNAME, printf("%s: (%d) %s\n", lvm_device, errno, in lvm_get_devno()
334 char *lv_name, *lvm_device; in lvm_probe_all() local
340 lvm_device = malloc(vg_len + strlen(vg_name) + in lvm_probe_all()
342 if (!lvm_device) { in lvm_probe_all()
346 sprintf(lvm_device, "%s/%s/LVs/%s", VG_DIR, vg_name, in lvm_probe_all()
348 dev = lvm_get_devno(lvm_device); in lvm_probe_all()
349 sprintf(lvm_device, "%s/%s", vg_name, lv_name); in lvm_probe_all()
351 lvm_device, in lvm_probe_all()
353 probe_one(cache, lvm_device, dev, BLKID_PRI_LVM, in lvm_probe_all()
355 free(lvm_device); in lvm_probe_all()