Sign in
nest-open-source
/
nest-learning-thermostat
/
5.1.3
/
util-linux-ng
/
refs/heads/master
/
.
/
util-linux-ng-2.17.2
/
mount
/
devname.c
blob: 585d259ff782a81c15cfdaf9dbf50f880a2356e4 [
file
] [
log
] [
blame
]
#include
"fsprobe.h"
#include
"devname.h"
#include
"sundries.h"
/* for xstrdup */
const
char
*
spec_to_devname
(
const
char
*
spec
)
{
if
(!
spec
)
return
NULL
;
if
(
is_pseudo_fs
(
spec
))
return
xstrdup
(
spec
);
return
fsprobe_get_devname_by_spec
(
spec
);
}