Page MenuHomeFreeBSD

D12269.id32769.diff
No OneTemporary

D12269.id32769.diff

Index: sbin/geom/class/virstor/geom_virstor.c
===================================================================
--- sbin/geom/class/virstor/geom_virstor.c
+++ 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: sbin/geom/misc/subr.c
===================================================================
--- sbin/geom/misc/subr.c
+++ 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:12 PM (11 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15604597
Default Alt Text
D12269.id32769.diff (776 B)

Event Timeline