Date: Fri, 21 Nov 2014 18:35:51 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r274808 - user/marcel/libvdsk/libvdsk Message-ID: <201411211835.sALIZp3B012778@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marcel Date: Fri Nov 21 18:35:50 2014 New Revision: 274808 URL: https://svnweb.freebsd.org/changeset/base/274808 Log: Make sure struct vdsk is a multiple of 16 bytes so that the user data is always sufficiently aligned. Modified: user/marcel/libvdsk/libvdsk/vdsk_int.h Modified: user/marcel/libvdsk/libvdsk/vdsk_int.h ============================================================================== --- user/marcel/libvdsk/libvdsk/vdsk_int.h Fri Nov 21 18:35:48 2014 (r274807) +++ user/marcel/libvdsk/libvdsk/vdsk_int.h Fri Nov 21 18:35:50 2014 (r274808) @@ -33,6 +33,6 @@ struct vdsk { int fd; int sectorsize; off_t capacity; -}; +} __attribute__((align(16))); #endif /* __VDSK_INT_H__ */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201411211835.sALIZp3B012778>