When we are not dealing with File device there is no need to
state that 'immutable' is set.
virtual bool set_immutable(const char *vol_name) { return true; };
virtual bool clear_immutable(const char *vol_name) { return true; };
virtual bool check_volume_protection_time(const char *vol_name) { return true; };
- virtual bool check_for_immutable(const char *vol_name) { return true; };
+ virtual bool check_for_immutable(const char *vol_name) { return false; };
virtual const char *print_type() = 0; /* in dev.c */
virtual const char *print_driver_type() { return "";};
virtual const char *print_full_type() { return print_type();};
return false;
}
- if (dev->check_for_immutable(VolumeName)) {
+ if (dev->device->set_vol_immutable && dev->check_for_immutable(VolumeName)) {
MmsgD1(dbglvl, jcr->errmsg, _("Skipping writing onto Volume %s, "
"because Volume's Protection Period has not expired yet\n"),
VolumeName);