diff options
author | pjd <pjd@FreeBSD.org> | 2005-07-13 07:46:55 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2005-07-13 07:46:55 +0000 |
commit | 894f400097034571cc932b09a466f53ca2853ff6 (patch) | |
tree | 62ba42f8791da75c6ce373f54f2c687e24f99c3d /sbin/geom/class/raid3 | |
parent | 0c522ec5dddd4699112954265e7d03fc5c8cb852 (diff) | |
download | FreeBSD-src-894f400097034571cc932b09a466f53ca2853ff6.zip FreeBSD-src-894f400097034571cc932b09a466f53ca2853ff6.tar.gz |
Don't forget to initialize 'id' field.
MFC after: 3 days
Diffstat (limited to 'sbin/geom/class/raid3')
-rw-r--r-- | sbin/geom/class/raid3/geom_raid3.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sbin/geom/class/raid3/geom_raid3.c b/sbin/geom/class/raid3/geom_raid3.c index f6967aa..bef8424 100644 --- a/sbin/geom/class/raid3/geom_raid3.c +++ b/sbin/geom/class/raid3/geom_raid3.c @@ -173,6 +173,7 @@ raid3_label(struct gctl_req *req) return; } strlcpy(md.md_name, str, sizeof(md.md_name)); + md.md_id = arc4random(); md.md_all = *nargs - 1; md.md_mflags = 0; md.md_dflags = 0; |