I think you misunderstood me, I'm not suggesting to duplicate the options.
The idea is to process the [mysqld] section of my.cnf differently than other sources. I think we can ignore unrecognized options in that section (and thus, skip all server-specific options), but fail with an error when reading the options from the command line or from the [xtrabackup] section (and thus disallow typos in xtrabackup-specific options). Does this sound acceptable?
Peter,
I think you misunderstood me, I'm not suggesting to duplicate the options.
The idea is to process the [mysqld] section of my.cnf differently than other sources. I think we can ignore unrecognized options in that section (and thus, skip all server-specific options), but fail with an error when reading the options from the command line or from the [xtrabackup] section (and thus disallow typos in xtrabackup-specific options). Does this sound acceptable?