Date: Sun, 23 Nov 2008 14:32:40 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r185202 - head/sys/dev/mmc Message-ID: <200811231432.mANEWeeD054269@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Sun Nov 23 14:32:40 2008 New Revision: 185202 URL: http://svn.freebsd.org/changeset/base/185202 Log: Report card erase sector size as disk stripe size. Modified: head/sys/dev/mmc/mmcsd.c Modified: head/sys/dev/mmc/mmcsd.c ============================================================================== --- head/sys/dev/mmc/mmcsd.c Sun Nov 23 14:02:06 2008 (r185201) +++ head/sys/dev/mmc/mmcsd.c Sun Nov 23 14:32:40 2008 (r185202) @@ -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; /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811231432.mANEWeeD054269>