ocfs2 changes for 2.6.32
Quoted 11 lines
Perhaps ->copyfile takes the following flags:
#define
ALLOW_COW_SHARED0x0001
#defineREQUIRE_COW_SHARED0x0002
#defineREQUIRE_BASIC_ATTRS0x0004
#defineREQUIRE_FULL_ATTRS0x0008
#defineREQUIRE_ATOMIC0x0010
#define SNAPSHOT (REQUIRE_COW_SHARED|
REQUIRE_BASIC_ATTRS|REQUIRE_ATOMIC)
#defineSNAPSHOT_PRESERVE(SNAPSHOT |REQUIRE_FULL_ATTRS)
Um, could I strongly suggest that flags == 0 be the "succeed if at all possible case", and various options limit it.
In particular, invert ALLOW_COW_SHARED to REQUIRE_ALLOCATE.
Another possibly useful flag would be REQUIRE_OPTIMIZED. I.e. if it's not appreciably faster than a read/write loop, perhaps the application would prefer to do it itself.
We also have to define the error code to return in case of a flag violation. ENOTSUP?