kernels/linux-2.4.0/drivers/md/lvm.c
/*
 * remove a /proc entry for a physical volume
 */
remove a /proc entry for a physical volume
remove a / proc entry for a physical volume
inline void lvm_do_remove_proc_entry_of_pv ( vg_t *vg_ptr, pv_t *pv_ptr) {
	char *basename;
	basename = strrchr(pv_ptr->pv_name, '/');
	if ( vg_ptr->pv_subdir_pde != NULL) {
		basename = strrchr(pv_ptr->pv_name, '/');
		if (basename == NULL) basename = pv_ptr->pv_name;
		else		      basename++;
		remove_proc_entry(basename, vg_ptr->pv_subdir_pde);
	}
}
inline void lvm_do_remove_proc_entry_of_pv ( vg_t * vg_ptr , pv_t * pv_ptr ) { char * basename ; basename = strrchr ( pv_ptr -> pv_name , ' ' ) ; if ( vg_ptr -> pv_subdir_pde != NULL ) { basename = strrchr ( pv_ptr -> pv_name , ' ' ) ; if ( basename == NULL ) basename = pv_ptr -> pv_name ; else basename ++ ; remove_proc_entry ( basename , vg_ptr -> pv_subdir_pde ) ; } }
remove a /proc entry for a physical volume
remove a / proc entry for a physical volume