fs: Fix filesystem detection with full path
When mount is given a full path (including /dev/) to the cdev file
we can no longer automatically detect the filesystem. This is broken
since:

e89f1a1 detect_fs: use device instead of file

Fix it by dropping the /dev/ component of the path.

Signed-off-by: Peter Mamonov <pmamonov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 54bf386 commit a7bbbe0236cd45c35bf79b4bdc628177e183791e
@Peter Mamonov Peter Mamonov authored on 13 Oct 2015
Sascha Hauer committed on 13 Oct 2015
Showing 1 changed file
View
fs/fs.c