plain text document attachment (24.rcfs-taskclass-unnamed-dir.patch)
Patch: 24.rcfs-taskclass-unnamed-dir.patch
Description:

Fix taskclass magic file arrays to automagically resize when new magic files 
are added. This fixes a bug where an unnamed directory was appearing.

Signed-Off-By: Matt Helsley <[EMAIL PROTECTED]>

---------------------------------------------------------------------

# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
#   2005/01/17 11:10:26-05:00 [EMAIL PROTECTED] 
#   24.rcfs-taskclass-unnamed-dir.patch
# 
# fs/rcfs/tc_magic.c
#   2004/12/21 20:31:32-05:00 [EMAIL PROTECTED] +2 -3
#   Import patch 24.rcfs-taskclass-unnamed-dir.patch
# 
Index: linux-2.6.12-rc3/fs/rcfs/tc_magic.c
===================================================================
--- linux-2.6.12-rc3.orig/fs/rcfs/tc_magic.c    2005-05-11 15:48:08.000000000 
-0700
+++ linux-2.6.12-rc3/fs/rcfs/tc_magic.c 2005-05-11 15:48:57.000000000 -0700
@@ -32,12 +32,11 @@
  *
  */
 
 #define TC_FILE_MODE (S_IFREG | S_IRUGO | S_IWUSR)
 
-#define NR_TCROOTMF  6
-struct rcfs_magf tc_rootdesc[NR_TCROOTMF] = {
+struct rcfs_magf tc_rootdesc[] = {
        /* First entry must be root */
        {
        /* .name = should not be set, copy from classtype name */
         .mode = RCFS_DEFAULT_DIR_MODE,
         .i_op = &rcfs_dir_inode_operations,
@@ -81,7 +80,7 @@ struct rcfs_magf tc_rootdesc[NR_TCROOTMF
         },
 };
 
 struct rcfs_mfdesc tc_mfdesc = {
        .rootmf = tc_rootdesc,
-       .rootmflen = NR_TCROOTMF,
+       .rootmflen = sizeof(tc_rootdesc)/sizeof(struct rcfs_magf),
 };

--



-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
ckrm-tech mailing list
https://lists.sourceforge.net/lists/listinfo/ckrm-tech

Reply via email to