@Override
  public boolean setFlags(final int recordId,
                          final @PersistentFS.Attributes int newFlags) throws IOException {
    int oldFlags = getIntField(recordId, RecordLayout.FLAGS_OFFSET);
    final boolean reallyChanged = (oldFlags != newFlags);
    if (reallyChanged) {
      setIntField(recordId, RecordLayout.FLAGS_OFFSET, newFlags);
    }
    return reallyChanged;
  }
@Override
  public boolean setFlags(final int recordId,
                          final @PersistentFS.Attributes int newFlags)