GFS2 has a set of rgrp flags defined as part of its on disk format. The most
important of these is: GFS2_RGF_NOALLOC. Currently the gfs2 rgrp code ignores
all of these flags.
We will eventually need to add an interface which allows setting of the flags,
but for now, just making sure that the NOALLOC flag is obeyed correctly is the
priority so that its there for future use.
Ben, CCing you on this one since you've just been working on a bug in a smilar
area of the code.
Created attachment 151411 [details]
Patch to fix this bug
This fixes the bug. Although it doesn't deal with all the flags, I can't
currently see any reasonable use for the data/metadata flag (in fact, due to
the allocation policy of GFS2, its actually a non-inode/inode flag despite its
name). So the only one which is really important here is the "noalloc" flag.