summaryrefslogtreecommitdiffstats
path: root/mount/devname.c
blob: 05da092f96a93d4ed18e6d55b9697524ab6e0de8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "fsprobe.h"

#include "devname.h"
#include "sundries.h"		/* for xstrdup */

const char *
spec_to_devname(const char *spec)
{
	if (!spec)
		return NULL;
	if (nocanonicalize || is_pseudo_fs(spec))
		return xstrdup(spec);
	return fsprobe_get_devname_by_spec(spec);
}