Commit Graph

9 Commits

Author SHA1 Message Date
saad-ali
8dd4fc79dc Introduce paramater for sensitive mount options.
Introduce optional sensitiveOptions parameter to allow sensitive mount
options to be passed in a separate parameter from the normal mount
options and ensures the sensitiveOptions are never logged.
2020-09-01 23:01:32 -07:00
David Zhu
5d34e5006a FormatAndMount unit test only checks for MountErrorValue now and closed gaps for some error values 2020-09-01 23:01:32 -07:00
David Zhu
99f567aa7a Add more detailed error output when disk formatting fails 2020-09-01 23:01:32 -07:00
Davanum Srinivas
0f9a3f756b Split MajorMinor into two fields
this reflects what is in the docker/docker/pkg/mount API. makes it
easier to port additional code to out API.
2020-09-01 23:01:32 -07:00
Lou
241ff06ccc update after review
Signed-off-by: Lou <luogj@cn.ibm.com>
2020-09-01 23:01:32 -07:00
Lou
3651c2ef51 use xfs_repair to check and repair xfs filesystem
Signed-off-by: Lou <luogj@cn.ibm.com>
2020-09-01 23:01:32 -07:00
Hemant Kumar
51e2ee9753 Return typed error when Mount Fails
Mount can fail for a variety of reasons and caller might want to know
why mount failed. Using untyped string based error does not provide
enough granularity to make that verification.
2020-09-01 23:01:32 -07:00
Maxime VISONNEAU
0e8dbc2c1e Validate the existence of filesystem before attempting to mount it (linux) 2020-09-01 23:01:32 -07:00
Travis Rhoden
0abe151fe8 Extract pkg/util/mount and drop BUILD
Preserving git history.
2020-09-01 23:01:32 -07:00