1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-21 11:13:30 +00:00
freebsd/sys/geom
Maxim Sobolev 6023800194 It is unclear who is wrong and who is right, but when operating on
plain file bsdlabel(8) always writes label at a fixed offset from
its beginning (512 bytes), regardless of the sector size. At the same
time, bsdlabel geom class expects label to be available at the very
beginning of the second sector.

As a result, images prepared in userland for media with sector size
different from 512 bytes (i.e. 2k for cdroms) are not recognized by
the tasting mechanism.

Solve the problem by always looking for the label at 512-byte offset
if we can't find it at the beginning of the second sector and sector
size is not 512 bytes.
2005-11-30 22:54:41 +00:00
..
bde Kill leading whilespace. 2005-11-30 19:07:28 +00:00
concat
eli Check for g_read_data(9) errors properly: 2005-11-30 19:24:51 +00:00
gate
label Don't pass error value pointer to g_read_data(9) at all if we don't 2005-11-30 22:15:00 +00:00
mirror Check for g_read_data(9) errors properly: 2005-11-30 19:24:51 +00:00
nop
raid3 Check for g_read_data(9) errors properly: 2005-11-30 19:24:51 +00:00
shsec
stripe
uzip Don't pass error value pointer to g_read_data(9) at all if we don't 2005-11-30 22:15:00 +00:00
vinum Don't pass error value pointer to g_read_data(9) at all if we don't 2005-11-30 22:15:00 +00:00
zero
geom_aes.c Don't pass error value pointer to g_read_data(9) at all if we don't 2005-11-30 22:15:00 +00:00
geom_apple.c Don't pass error value pointer to g_read_data(9) at all if we don't 2005-11-30 22:15:00 +00:00
geom_bsd_enc.c
geom_bsd.c It is unclear who is wrong and who is right, but when operating on 2005-11-30 22:54:41 +00:00
geom_ccd.c
geom_ctl.c
geom_ctl.h
geom_dev.c
geom_disk.c
geom_disk.h
geom_dump.c
geom_event.c
geom_fox.c Don't pass error value pointer to g_read_data(9) at all if we don't 2005-11-30 22:15:00 +00:00
geom_gpt.c Check for g_read_data(9) errors properly: 2005-11-30 19:24:51 +00:00
geom_int.h
geom_io.c
geom_kern.c Add sysctl descriptions. 2005-11-25 10:09:30 +00:00
geom_mbr_enc.c
geom_mbr.c Don't pass error value pointer to g_read_data(9) at all if we don't 2005-11-30 22:15:00 +00:00
geom_pc98_enc.c
geom_pc98.c Don't pass error value pointer to g_read_data(9) at all if we don't 2005-11-30 22:15:00 +00:00
geom_slice.c
geom_slice.h
geom_subr.c
geom_sunlabel_enc.c
geom_sunlabel.c Don't pass error value pointer to g_read_data(9) at all if we don't 2005-11-30 22:15:00 +00:00
geom_vfs.c
geom_vfs.h
geom_vol_ffs.c Don't pass error value pointer to g_read_data(9) at all if we don't 2005-11-30 22:15:00 +00:00
geom.h
notes