Neil,
Thanks for reporting the logredo failure. The problem is that the code
handling creation of symbolic links was doing bad things trying to get
the inode changes to the journal. This patch should fix it. Please let
me know if it doesn't completely solve the problem for you.
Thanks,
Dave Kleikamp
IBM Linux Technology Center
Index: linux24/fs/jfs/jfs_imap.c
===================================================================
RCS file: /usr/cvs/jfs/linux24/fs/jfs/jfs_imap.c,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- linux24/fs/jfs/jfs_imap.c 2001/11/15 13:23:34 1.22
+++ linux24/fs/jfs/jfs_imap.c 2001/12/05 16:26:32 1.23
@@ -834,6 +834,16 @@
}
inlineData:
+ /*
+ * copy inline symlink from in-memory inode to on-disk inode
+ */
+ if (S_ISLNK(ip->i_mode) && ip->i_size < IDATASIZE) {
+ lv = (lv_t *) & dilinelock->lv[dilinelock->index];
+ lv->offset = (dioffset + 2 * 128) >> L2INODESLOTSIZE;
+ lv->length = 2;
+ memcpy(&dp->di_fastsymlink, jfs_ip->i_inline, IDATASIZE);
+ dilinelock->index++;
+ }
#ifdef _STILL_TO_PORT
/*
* copy inline data from in-memory inode to on-disk inode:
Index: linux24/fs/jfs/namei.c
===================================================================
RCS file: /usr/cvs/jfs/linux24/fs/jfs/namei.c,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -r1.19 -r1.20
--- linux24/fs/jfs/namei.c 2001/11/09 16:45:30 1.19
+++ linux24/fs/jfs/namei.c 2001/12/05 16:26:33 1.20
@@ -887,8 +887,6 @@
s64 xaddr;
metapage_t *mp;
struct super_block *sb;
- tlock_t *tlck;
- xtlock_t *xtlck;
tblock_t *tblk;
struct inode *iplist[2];
@@ -968,15 +966,6 @@
i_fastsymlink = JFS_IP(ip)->i_inline;
memcpy(i_fastsymlink, name, ssize);
ip->i_size = ssize - 1;
- /*
- * This could probably be done cleaner, but for now, treat
- * the transaction like an xtree update.
- */
- tlck = txLock(tid, ip, (metapage_t *) & JFS_IP(ip)->bxflag,
- tlckXTREE);
- xtlck = (xtlock_t *) & tlck->lock;
- xtlck->lwm.length =
- (ssize + XTSLOTSIZE - 1) >> L2XTSLOTSIZE;
jFYI(1,
("jfs_symlink: fast symlink added ssize:%d name:%s \n",
ssize, name));
_______________________________________________
Jfs-discussion mailing list
[EMAIL PROTECTED]
http://www-124.ibm.com/developerworks/oss/mailman/listinfo/jfs-discussion