diff options
author | mav <mav@FreeBSD.org> | 2008-11-23 14:32:40 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2008-11-23 14:32:40 +0000 |
commit | 3da37e1610682d8bfb4b4c833bb07f9a0030fab1 (patch) | |
tree | 95677e476cbdb684a512a37766d765fb3840215d | |
parent | effe067191474bd1bb58cca639534979e876c675 (diff) | |
download | FreeBSD-src-3da37e1610682d8bfb4b4c833bb07f9a0030fab1.zip FreeBSD-src-3da37e1610682d8bfb4b4c833bb07f9a0030fab1.tar.gz |
Report card erase sector size as disk stripe size.
-rw-r--r-- | sys/dev/mmc/mmcsd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/mmc/mmcsd.c b/sys/dev/mmc/mmcsd.c index 8e08b63..af2a88e 100644 --- a/sys/dev/mmc/mmcsd.c +++ b/sys/dev/mmc/mmcsd.c @@ -135,6 +135,8 @@ mmcsd_attach(device_t dev) d->d_maxsize = 4*1024*1024; /* Maximum defined SD card AU size. */ d->d_sectorsize = mmc_get_sector_size(dev); d->d_mediasize = mmc_get_media_size(dev) * d->d_sectorsize; + d->d_stripeoffset = 0; + d->d_stripesize = mmc_get_erase_sector(dev) * d->d_sectorsize; d->d_unit = device_get_unit(dev); d->d_flags = DISKFLAG_CANDELETE; /* |