From 6e4d020daf85991ddcc4d2e21fc6704e969d6260 Mon Sep 17 00:00:00 2001 From: Robert Peterson Date: Thu, 7 Jun 2007 09:10:01 -0500 Subject: [PATCH] --- yaml --- r: 58571 b: refs/heads/master c: b35997d4482ed24b43a5951c5b021d224b24293c h: refs/heads/master i: 58569: 47f98d1a732c4d55d9a7167e53ac7433414e6678 58567: 5fc590abef4587e018983cfeb7a747c7dead3f85 v: v3 --- [refs] | 2 +- trunk/fs/gfs2/ops_fstype.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/[refs] b/[refs] index 831c9bb60f83..ca78c65879c8 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: e1cc86037b689a82cdb2df50c32fa8cf9d6b6c3a +refs/heads/master: b35997d4482ed24b43a5951c5b021d224b24293c diff --git a/trunk/fs/gfs2/ops_fstype.c b/trunk/fs/gfs2/ops_fstype.c index b46727275e58..dae1d7142fe5 100644 --- a/trunk/fs/gfs2/ops_fstype.c +++ b/trunk/fs/gfs2/ops_fstype.c @@ -145,6 +145,9 @@ static int init_names(struct gfs2_sbd *sdp, int silent) snprintf(sdp->sd_proto_name, GFS2_FSNAME_LEN, "%s", proto); snprintf(sdp->sd_table_name, GFS2_FSNAME_LEN, "%s", table); + while ((table = strchr(sdp->sd_table_name, '/'))) + *table = '_'; + out: return error; }