Page MenuHomeFreeBSD

D12269.id32802.diff
No OneTemporary

D12269.id32802.diff

Index: head/sbin/geom/class/virstor/geom_virstor.c
===================================================================
--- head/sbin/geom/class/virstor/geom_virstor.c
+++ head/sbin/geom/class/virstor/geom_virstor.c
@@ -183,6 +183,7 @@
goto out;
}
bcopy(md, sector, size);
+ bzero(sector + size, sectorsize - size);
if (pwrite(fd, sector, sectorsize, mediasize - sectorsize) !=
(ssize_t)sectorsize) {
error = errno;
Index: head/sbin/geom/misc/subr.c
===================================================================
--- head/sbin/geom/misc/subr.c
+++ head/sbin/geom/misc/subr.c
@@ -302,6 +302,7 @@
goto out;
}
bcopy(md, sector, size);
+ bzero(sector + size, sectorsize - size);
if (pwrite(fd, sector, sectorsize, mediasize - sectorsize) !=
sectorsize) {
error = errno;

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 12:01 PM (11 h, 49 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15599783
Default Alt Text
D12269.id32802.diff (806 B)

Event Timeline