overlayfs: implement show_options
authorErez Zadok <ezk@fsl.cs.sunysb.edu>
Thu, 23 Oct 2014 22:14:38 +0000 (00:14 +0200)
committerMiklos Szeredi <mszeredi@suse.cz>
Thu, 23 Oct 2014 22:14:38 +0000 (00:14 +0200)
commitf45827e84186af152492c6d0dcf4105b4a605f9b
treec202fa1dc66dec8c0cacd98d38492026a0359965
parentcc2596392af3b1404421aaef828a255303c46f93
overlayfs: implement show_options

This is useful because of the stacking nature of overlayfs.  Users like to
find out (via /proc/mounts) which lower/upper directory were used at mount
time.

AV: even failing ovl_parse_opt() could've done some kstrdup()
AV: failure of ovl_alloc_entry() should end up with ENOMEM, not EINVAL

Signed-off-by: Erez Zadok <ezk@cs.sunysb.edu>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
fs/overlayfs/super.c