ufs mode is not included in snapshot state

Description

This means that restarting master or restoring from backup may lose ufs modes.

Reproduce steps:

1. Start alluxio locally
2. bin/alluxio fsadmin ufs --mode readOnly /
3. set write type to cache through
4. bin/alluxio fs touch /test # fails because the UFS is read-only
5. bin/alluxio fsadmin backup
6. stop master, format journal, start again from backup
7. bin/alluixo fs touch /test # succeeds because the master forgot that the UFS should be read-only

Environment

None

Status

Assignee

Andrew Audibert

Reporter

Andrew Audibert

Labels

None

Components

Fix versions

Affects versions

1.8.0

Priority

Critical
Configure