rename from .tier to .vif

This commit is contained in:
Chris Lu 2019-12-28 11:17:39 -08:00
parent b3c83f9404
commit e8b357fd53
2 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@ func (v *Volume) Destroy() (err error) {
v.Close()
os.Remove(v.FileName() + ".dat")
os.Remove(v.FileName() + ".idx")
os.Remove(v.FileName() + ".tier")
os.Remove(v.FileName() + ".vif")
os.Remove(v.FileName() + ".sdx")
os.Remove(v.FileName() + ".cpd")
os.Remove(v.FileName() + ".cpx")

View File

@ -21,7 +21,7 @@ func (v *Volume) maybeLoadVolumeTierInfo() bool {
v.volumeTierInfo = &volume_server_pb.VolumeTierInfo{}
tierFileName := v.FileName() + ".tier"
tierFileName := v.FileName() + ".vif"
if exists, canRead, _, _, _ := checkFile(tierFileName); !exists || !canRead {
if !exists {
@ -88,7 +88,7 @@ func (v *Volume) LoadRemoteFile() error {
func (v *Volume) SaveVolumeTierInfo() error {
tierFileName := v.FileName() + ".tier"
tierFileName := v.FileName() + ".vif"
if exists, _, canWrite, _, _ := checkFile(tierFileName); exists && !canWrite {
return fmt.Errorf("%s not writable", tierFileName)