Hi,
I'm working on a disk cache setting for per disk offering which allows
users to set it to:
- none (current behaviour and default)
- writeback
- writethrough
I've done some work in the disk-cache branch [0] where I created a new
column called "cache_mode" in the disk_offering table.
It's currently a varchar(32), but only 3 strings are allowed in the
column, as listed above.
We don't use enums anywhere in the database, so I was wondering if there
is a good reason for that?
Otherwise I think using a enum here would be a good use-case.
Wido
[0]:
https://git-wip-us.apache.org/repos/asf?p=cloudstack.git;a=shortlog;h=refs/heads/disk-cache