diff --git a/ra/Makefile b/ra/1.0/Makefile similarity index 100% copy from ra/Makefile copy to ra/1.0/Makefile diff --git a/ra/ra-api-1.rng b/ra/1.0/ra-api.ng similarity index 100% copy from ra/ra-api-1.rng copy to ra/1.0/ra-api.ng diff --git a/ra/ra-metadata-example.xml b/ra/1.0/ra-metadata-example.xml similarity index 100% copy from ra/ra-metadata-example.xml copy to ra/1.0/ra-metadata-example.xml diff --git a/ra/resource-agent-api.md b/ra/1.0/resource-agent-api.md similarity index 100% copy from ra/resource-agent-api.md copy to ra/1.0/resource-agent-api.md diff --git a/ra/latest b/ra/latest new file mode 120000 index 0000000..9f8e9b6 --- /dev/null +++ b/ra/latest @@ -0,0 +1 @@ +1.0 \ No newline at end of file diff --git a/ra/Makefile b/ra/next/Makefile similarity index 61% rename from ra/Makefile rename to ra/next/Makefile index 5a985f0..128b6be 100644 --- a/ra/Makefile +++ b/ra/next/Makefile @@ -1,19 +1,23 @@ # Basic DocBook mangling makefile. # # BASENAME=resource-agent-api +GRAMMAR=ra-api.ng +TEST_FILES=ra-metadata-example-1.0.xml ra-metadata-example.xml .PHONY: all clean %.html: %.md pandoc -f markdown -o $@ $^ %.pdf: %.md pandoc -f markdown -o $@ $^ all: $(BASENAME).pdf $(BASENAME).html clean: rm $(BASENAME).pdf $(BASENAME).html||true +check: $(GRAMMAR) $(TEST_FILES) + xmllint --relaxng $(GRAMMAR) --noout $(TEST_FILES) diff --git a/ra/ra-api-1.rng b/ra/next/ra-api.ng similarity index 78% rename from ra/ra-api-1.rng rename to ra/next/ra-api.ng index a288997..0aa077e 100644 --- a/ra/ra-api-1.rng +++ b/ra/next/ra-api.ng @@ -1,103 +1,124 @@ + + + + + + + + - - + - - + boolean string integer + + + select + + + + + + + start stop recover status reload meta-data verify-all 0 1 + + + + + diff --git a/ra/ra-metadata-example.xml b/ra/next/ra-metadata-example-1.0.xml similarity index 100% copy from ra/ra-metadata-example.xml copy to ra/next/ra-metadata-example-1.0.xml diff --git a/ra/ra-metadata-example.xml b/ra/next/ra-metadata-example.xml similarity index 88% rename from ra/ra-metadata-example.xml rename to ra/next/ra-metadata-example.xml index 71a5dd0..394f50c 100644 --- a/ra/ra-metadata-example.xml +++ b/ra/next/ra-metadata-example.xml @@ -1,105 +1,120 @@ 1.0 + + Filesystem matters. + + - + The resource name is the directory where the filesystem will be actually -mounted. Please make sure it exists. +mounted. Please make sure it exists. Mountpoint When mounting a filesystem on a specific mountpoint, you have to specify which device should be mounted; this will usually be similiar to /dev/sda1 or /dev/volumegroup/logicalvolume when using LVM. Device to be mounted You should chose a journaled filesystem for the shared storage to ensure that the filesystem remains consistent and that it can be mounted without an expensive fsck run; recommendations include reiserfs, ext3 and XFS. Type of the filesystem The mount options used for mounting a filesystem; normally this is set to defaults, but you may want to modify this if you require a read-only mount or something similar. Mount options for this filesystem + + +The fstype options is used to specify file system type. + +Filesystem type + + + + 403 diff --git a/ra/resource-agent-api.md b/ra/next/resource-agent-api.md similarity index 100% rename from ra/resource-agent-api.md rename to ra/next/resource-agent-api.md