patch-2.4.14 linux/fs/isofs/rock.h

Next file: linux/fs/isofs/util.c
Previous file: linux/fs/isofs/rock.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.13/linux/fs/isofs/rock.h linux/fs/isofs/rock.h
@@ -6,7 +6,7 @@
 struct SU_SP{
   unsigned char magic[2];
   unsigned char skip;
-};
+} __attribute__((packed));
 
 struct SU_CE{
   char extent[8];
@@ -20,11 +20,11 @@
   unsigned char len_src;
   unsigned char ext_ver;
   char data[0];
-};
+} __attribute__((packed));
 
 struct RR_RR{
   char flags[1];
-};
+} __attribute__((packed));
 
 struct RR_PX{
   char mode[8];
@@ -43,17 +43,17 @@
   unsigned char flags;
   unsigned char len;
   char text[0];
-};
+} __attribute__((packed));
 
 struct RR_SL{
   unsigned char flags;
   struct SL_component link;
-};
+} __attribute__((packed));
 
 struct RR_NM{
   unsigned char flags;
   char name[0];
-};
+} __attribute__((packed));
 
 struct RR_CL{
   char location[8];
@@ -65,11 +65,18 @@
 
 struct stamp{
   char time[7];
-};
+} __attribute__((packed));
 
 struct RR_TF{
   char flags;
   struct stamp times[0];  /* Variable number of these beasts */
+} __attribute__((packed));
+
+/* Linux-specific extension for transparent decompression */
+struct RR_ZF{
+  char algorithm[2];
+  char parms[2];
+  char real_size[8];
 };
 
 /* These are the bits and their meanings for flags in the TF structure. */
@@ -98,6 +105,7 @@
     struct RR_CL CL;
     struct RR_PL PL;
     struct RR_TF TF;
+    struct RR_ZF ZF;
   } u;
 };
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)