wiki:drmsNamePartitions

Version 2 (modified by niles, 10 years ago) (diff)

--

Naming partitions to work with the sum_chown program

The sum_chmown program requires that SUM partitions are named according to a convention. At one point in time, the file sum_chmown.c defined the naming convention that SUMS directories had to match as being :

#define PATTERN "^/SUM[0-9]*/D[0-9]+$"

This meant that a partition named "/SUM02" would be accepted, but "/SUMS02" would not. Later versions of NetDRMS changed this to :

#define PATTERN "^/SUM.*/D[0-9]+$"

Which only requires that the partition name starts with "/SUM".

If you have a partition that does not follow this convention, you can put in a symbolic link that does follow it. Alternatively, since sum_chmown is redundant if you are running as the production user, you may be able to move the sum_chmown executable to another name and then edit a script named sum_chmown that simply exits with non-error status if you are running it as the production user.