libfstools/mount: Support latest overlayfs versions
authorMaxime Ripard <maxime.ripard@free-electrons.com>
Thu, 9 Oct 2014 13:07:35 +0000 (15:07 +0200)
committerJohn Crispin <blogic@openwrt.org>
Sat, 11 Oct 2014 22:08:41 +0000 (00:08 +0200)
commitd71297353dc45eaf8f7c252246490746708530f9
treec9b343a16a504b152e69cb7e6f1183328de0cc80
parent04f863c7d831a18d388db980cc85b2bac37b3c8d
libfstools/mount: Support latest overlayfs versions

The latest overlayfs revisions (v23 and above) require an additional directory
to be given in the options.

Since we need to support both pre-v23 and post-v23 versions, take a lazy
approach and try to first mount without a workdir, and if it fails, try with
it.

Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
libfstools/mount.c