mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-16 15:11:52 +00:00
Report card erase sector size as disk stripe size.
This commit is contained in:
parent
249b0e8586
commit
2262a5197a
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=185202
@ -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;
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user