patch-2.3.41 linux/fs/udf/udf_sb.h

Next file: linux/fs/udf/udfdecl.h
Previous file: linux/fs/udf/udf_i.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.40/linux/fs/udf/udf_sb.h linux/fs/udf/udf_sb.h
@@ -24,6 +24,7 @@
 {\
 	UDF_SB_NUMPARTS(X) = Y;\
 	UDF_SB_PARTMAPS(X) = kmalloc(sizeof(struct udf_part_map) * Y, GFP_KERNEL);\
+	memset(UDF_SB_PARTMAPS(X), 0x00, sizeof(struct udf_part_map) * Y);\
 }
 
 #define IS_STRICT(X)			( UDF_SB(X)->s_flags & UDF_FLAG_STRICT )
@@ -43,9 +44,7 @@
 #define UDF_SB_RECORDTIME(X)	( UDF_SB(X)->s_recordtime )
 #define UDF_SB_VOLIDENT(X)		( UDF_SB(X)->s_volident )
 #define UDF_SB_PARTMAPS(X)		( UDF_SB(X)->s_partmaps )
-#define UDF_SB_LOCATION(X)		( UDF_SB(X)->s_location )
 #define UDF_SB_SERIALNUM(X)		( UDF_SB(X)->s_serialnum )
-#define UDF_SB_CHARSET(X)		( UDF_SB(X)->s_nls_iocharset )
 #define UDF_SB_VAT(X)			( UDF_SB(X)->s_vat )
 
 #define UDF_SB_BLOCK_BITMAP_NUMBER(X,Y) ( UDF_SB(X)->s_block_bitmap_number[Y] )
@@ -59,5 +58,6 @@
 #define UDF_SB_PARTNUM(X,Y)		( UDF_SB_PARTMAPS(X)[Y].s_partition_num )
 #define UDF_SB_TYPESPAR(X,Y)	( UDF_SB_PARTMAPS(X)[Y].s_type_specific.s_sparing )
 #define UDF_SB_TYPEVIRT(X,Y)	( UDF_SB_PARTMAPS(X)[Y].s_type_specific.s_virtual )
+#define UDF_SB_PARTFUNC(X,Y)	( UDF_SB_PARTMAPS(X)[Y].s_partition_func )
 
 #endif /* __LINUX_UDF_SB_H */

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