X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=src%2Fshowattr.c;h=1d7783e867686b7af60ecdf61eca455dddbde7c2;hb=f9cebb9ac52666f55a67cfd22033f59ee21dd845;hp=c9d1055cf4899196bd1df5480e2d77b8e15bf76b;hpb=6bf3f95de36c804c97716b2d0bdf10680c559044;p=util-vserver.git diff --git a/src/showattr.c b/src/showattr.c index c9d1055..1d7783e 100644 --- a/src/showattr.c +++ b/src/showattr.c @@ -33,9 +33,13 @@ // Patch to help compile this utility on unpatched kernel source -#ifndef EXT2_IMMUTABLE_FILE_FL - #define EXT2_IMMUTABLE_FILE_FL 0x00000010 - #define EXT2_IMMUTABLE_LINK_FL 0x00008000 +#ifndef EXT2_IUNLINK_FL +/* Set both bits for backward compatibility */ +#define EXT2_IUNLINK_FL 0x08008000 +#endif + +#ifndef EXT2_BARRIER_FL +#define EXT2_BARRIER_FL 0x04000000 #endif /* @@ -108,22 +112,36 @@ int main (int argc, char *argv[]) } } }else if (strstr(argv[0],"setattr")!=NULL){ - long flags = 0; + long flags, add_flags = 0, remove_flags = 0; int i; ret = 0; for (i=1; i