From: Herbert Xu <herbert@gondor.apana.org.au>
To: hans-christoph.rohland@sap.com, linux-kernel@vger.kernel.org
Subject: [PATCH] tmpfs symlink size bug
Date: Sun, 28 Oct 2001 10:38:26 +1100 [thread overview]
Message-ID: <20011028103826.A17842@gondor.apana.org.au> (raw)
[-- Attachment #1: Type: text/plain, Size: 330 bytes --]
Since 2.4.12 the size of symlinks on tmpfs has been off by one. The
following patch corrects that error.
--
Debian GNU/Linux 2.2 is out! ( http://www.debian.org/ )
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
[-- Attachment #2: p --]
[-- Type: text/plain, Size: 543 bytes --]
Index: mm/shmem.c
===================================================================
RCS file: /home/gondolin/herbert/src/CVS/debian/kernel-source-2.4/mm/shmem.c,v
retrieving revision 1.1.1.16
diff -u -r1.1.1.16 shmem.c
--- mm/shmem.c 17 Oct 2001 21:19:20 -0000 1.1.1.16
+++ mm/shmem.c 27 Oct 2001 23:34:51 -0000
@@ -1157,7 +1157,7 @@
inode = dentry->d_inode;
info = SHMEM_I(inode);
- inode->i_size = len;
+ inode->i_size = len - 1;
if (len <= sizeof(struct shmem_inode_info)) {
/* do it inline */
memcpy(info, symname, len);
next reply other threads:[~2001-10-27 23:38 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-27 23:38 Herbert Xu [this message]
2001-10-29 8:49 ` [PATCH] tmpfs symlink size bug Christoph Rohland
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011028103826.A17842@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=hans-christoph.rohland@sap.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).