From: rpeterso@sourceware.org <rpeterso@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] Cluster Project branch, RHEL4, updated. gfs-kernel_2_6_9_76-84-gc272e73
Date: 4 Jun 2008 20:11:57 -0000 [thread overview]
Message-ID: <20080604201157.15535.qmail@sourceware.org> (raw)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Cluster Project".
http://sources.redhat.com/git/gitweb.cgi?p=cluster.git;a=commitdiff;h=c272e736b0b3990954eb757f9cb41f9ef0810eb6
The branch, RHEL4 has been updated
via c272e736b0b3990954eb757f9cb41f9ef0810eb6 (commit)
from 978bcc9692281b816a56dd4589acbcb7dd5d95ac (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c272e736b0b3990954eb757f9cb41f9ef0810eb6
Author: Bob Peterson <rpeterso@redhat.com>
Date: Mon Jun 2 13:35:20 2008 -0500
Resolves: bz 449330: stat() syscall on a file returns id of
diapered device in st_dev
-----------------------------------------------------------------------
Summary of changes:
gfs-kernel/src/gfs/ops_inode.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/gfs-kernel/src/gfs/ops_inode.c b/gfs-kernel/src/gfs/ops_inode.c
index 0e49679..7fc1941 100644
--- a/gfs-kernel/src/gfs/ops_inode.c
+++ b/gfs-kernel/src/gfs/ops_inode.c
@@ -29,6 +29,7 @@
#include "gfs.h"
#include "acl.h"
#include "bmap.h"
+#include "diaper.h"
#include "dio.h"
#include "dir.h"
#include "eaops.h"
@@ -1647,6 +1648,7 @@ gfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
struct inode *inode = dentry->d_inode;
struct gfs_inode *ip = vn2ip(inode);
struct gfs_holder gh;
+ struct block_device *blk_dev;
int error;
atomic_inc(&ip->i_sbd->sd_ops_inode);
@@ -1655,6 +1657,9 @@ gfs_getattr(struct vfsmount *mnt, struct dentry *dentry, struct kstat *stat)
if (!error)
{
generic_fillattr(inode, stat);
+ blk_dev = gfs_diaper_2real(inode->i_sb->s_bdev);
+ if (blk_dev)
+ stat->dev = blk_dev->bd_dev;
gfs_glock_dq_uninit(&gh);
}
hooks/post-receive
--
Cluster Project
reply other threads:[~2008-06-04 20:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=20080604201157.15535.qmail@sourceware.org \
--to=rpeterso@sourceware.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.