From e5d86a674b410a9a60d47bfd2facd239eae543da Mon Sep 17 00:00:00 2001 From: adilger Date: Mon, 16 Sep 2002 23:17:29 +0000 Subject: [PATCH] Should only happen with lctl, but just to be safe... --- lustre/obdfilter/filter.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lustre/obdfilter/filter.c b/lustre/obdfilter/filter.c index b5e2c82..eab4609 100644 --- a/lustre/obdfilter/filter.c +++ b/lustre/obdfilter/filter.c @@ -567,6 +567,11 @@ static int filter_open(struct lustre_handle *conn, struct obdo *oa, if (IS_ERR(dentry)) RETURN(PTR_ERR(dentry)); + if (!dentry->d_inode) { + CERROR("opening non-existent objid "LPX64"\n", oa->o_id); + RETURN(-ENOENT); + } + filter_from_inode(oa, dentry->d_inode, OBD_MD_FLSIZE | OBD_MD_FLBLOCKS | OBD_MD_FLMTIME | OBD_MD_FLCTIME); -- 1.8.3.1