freebsd-skq/sys/geom
Simon L. B. Nielsen 274ede62a8 In g_dev_strategy(), when failing an IO request with EINVAL due to
offset or request size which is not a multiple of the sector size, make
sure that the bio is set to indicate that no data has actually been
transferred.

The result of this is that the file offset is no longer incremented for
these requests.  The fact that the file offset was incremented broke
fdisk(8)'s probing of sector size for non-512 byte sector sizes.

Reviewed by:	phk, cperciva
Submitted by:	mdodd
MFC after:	2 weeks
2006-06-18 22:01:15 +00:00
..
bde Kill leading whilespace. 2005-11-30 19:07:28 +00:00
concat Remove trailing spaces. 2006-02-01 12:06:01 +00:00
eli Allow to use the old -a option to specify an encryption algorithm to use 2006-06-06 22:06:24 +00:00
gate Remove trailing spaces. 2006-02-01 12:06:01 +00:00
label We need to check if file system size is equal to provider's size, because 2006-03-04 19:41:54 +00:00
mirror - Remove dead code. 2006-04-28 12:13:49 +00:00
nop Remove trailing spaces. 2006-02-01 12:06:01 +00:00
raid3 Use G_RAID3_FOREACH_SAFE_BIO() macro instead of G_RAID3_FOREACH_BIO() in 2006-05-04 13:01:16 +00:00
shsec Remove trailing spaces. 2006-02-01 12:06:01 +00:00
stripe Remove trailing spaces. 2006-02-01 12:06:01 +00:00
uzip Rename geom_uzip class to g_uzip in order to be consistent with the naming 2006-01-22 15:35:14 +00:00
vinum Protect from creating striped and RAID5 plexes with unequally sized 2006-03-30 14:01:25 +00:00
zero Remove trailing spaces. 2006-02-01 12:06:01 +00:00
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 /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 18:27:30 +00:00
geom_bsd.c Remove the trailing half of a sentence which was clearly superceded 2006-05-24 11:02:32 +00:00
geom_ccd.c Make CCD be able to read and write Linux software raids. 2006-04-13 20:35:31 +00:00
geom_ctl.c Change gctl_set_param() to return an error instead of setting an 2006-04-07 16:19:48 +00:00
geom_ctl.h
geom_dev.c In g_dev_strategy(), when failing an IO request with EINVAL due to 2006-06-18 22:01:15 +00:00
geom_disk.c Add g_wither_provider() to abstract the details of destroying a 2006-04-10 03:55:13 +00:00
geom_disk.h Fix a bug that caused some /dev entries to continue to exist after 2005-11-18 02:43:49 +00:00
geom_dump.c Make the kern.geom.conftxt sysctl more usable by also dumping the 2005-11-12 20:02:02 +00:00
geom_event.c Remove a race condition that could result in processes being stuck 2005-09-04 19:14:19 +00:00
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 Fix unaligned memory accesses on Alpha and possible other platforms. 2006-06-04 20:26:13 +00:00
geom_int.h Use unit number allocation functions for GEOM minor numbers. 2004-10-25 12:28:28 +00:00
geom_io.c Add g_duplicate_bio() function which does the same thing what g_clone_bio() 2006-06-05 21:13:22 +00:00
geom_kern.c Add sysctl descriptions. 2005-11-25 10:09:30 +00:00
geom_mbr_enc.c /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 18:27:30 +00:00
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 Fix signed vs unsigned warning. 2005-05-01 09:44:50 +00:00
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 Add g_wither_provider() to abstract the details of destroying a 2006-04-10 03:55:13 +00:00
geom_slice.h Allow to use g_slice_orphan() from outside. 2006-02-18 11:21:17 +00:00
geom_subr.c Add g_wither_provider() to abstract the details of destroying a 2006-04-10 03:55:13 +00:00
geom_sunlabel_enc.c Support VTOC volume names. This can be useful to distinguish multiple 2005-03-30 09:33:10 +00:00
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 - Lock Giant if needed around the call to vnode_create_vobject(). This is 2006-03-02 05:37:44 +00:00
geom_vfs.h Make various random things static 2005-02-10 12:10:35 +00:00
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 Add g_duplicate_bio() function which does the same thing what g_clone_bio() 2006-06-05 21:13:22 +00:00
notes For removable devices without media we set a zero mediasize but a non-zero 2004-09-05 21:15:58 +00:00