Add COW to showattr.
authorDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 8 Oct 2009 17:14:21 +0000 (17:14 +0000)
committerDaniel Hokka Zakrisson <daniel@hozac.com>
Thu, 8 Oct 2009 17:14:21 +0000 (17:14 +0000)
git-svn-id: http://svn.linux-vserver.org/svn/util-vserver/trunk@2853 94cd875c-1c1d-0410-91d2-eb244daf1a30

src/showattr.c

index 8e3ff15..b6694b7 100644 (file)
@@ -107,12 +107,13 @@ handleFile(char const *name, char const *display_name)
   if (getFlags(name, &flags, &mask)) {
       //                                     1       1       0       0
       //                              fedcba9876543210fedcba9876543210
-    static char const  MARKER[33] = ".......x.....iub............mhwa";
+    static char const  MARKER[33] = ".......x....ciub............mhwa";
     int                i;
     uint32_t           used_flags = (VC_IATTR_XID|VC_IATTR_ADMIN|
                                      VC_IATTR_WATCH|VC_IATTR_HIDE|
                                      VC_IATTR_BARRIER|VC_IATTR_IUNLINK|
-                                     VC_IATTR_IMMUTABLE|VC_IATTR_WRITE);
+                                     VC_IATTR_IMMUTABLE|VC_IATTR_WRITE|
+                                     VC_IATTR_COW);
 
     for (i=0; i<32; ++i) {
       if (used_flags & 1) {