[PATCH v6 0/3] option validation in remount

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Some overlayfs mount options cannot be changed via remount,
but current remount does not validate options even if specifying
unrecognized options.

This patch series adjust option parsing to support remount,
Considering backward compatibility, in current stage we only print
warning message but not return error when detecting unchangeable
options in remount. However, if user specify unrecognized or invalid
options then return -EINVAL.

This is also a starting point to exploring how to change options
(e.g. ro->rw with specifying workdir&upperdir) in remount.

Thanks,
Chengguang.
---

Chengguang Xu (3):
  ovl: adjust option parsing for supporting remount
  ovl: move the code of ovl_remount() to behind ovl_parse_opt()
  ovl: print warning when specifying unchangeable options in remount

 fs/overlayfs/super.c | 151 ++++++++++++++++++++++++++++++++++++---------------
 1 file changed, 108 insertions(+), 43 deletions(-)

-- 
1.8.3.1

--
To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux