From owner-svn-src-all@FreeBSD.ORG Tue Feb 10 16:34:27 2015 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8FE8752A for ; Tue, 10 Feb 2015 16:34:27 +0000 (UTC) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6EDD437D for ; Tue, 10 Feb 2015 16:34:27 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.9/8.14.9) with ESMTP id t1AGYRHs024158 for ; Tue, 10 Feb 2015 16:34:27 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.9/8.14.9/Submit) id t1AGYR4u024157 for svn-src-all@freebsd.org; Tue, 10 Feb 2015 16:34:27 GMT (envelope-from bdrewery) Received: (qmail 27866 invoked from network); 10 Feb 2015 10:34:25 -0600 Received: from unknown (HELO ?10.10.1.139?) (freebsd@shatow.net@10.10.1.139) by sweb.xzibition.com with ESMTPA; 10 Feb 2015 10:34:25 -0600 Message-ID: <54DA3312.8050709@FreeBSD.org> Date: Tue, 10 Feb 2015 10:34:26 -0600 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Edward Tomasz Napierala , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r278521 - head/sys/fs/autofs References: <201502101617.t1AGHH12081338@svn.freebsd.org> In-Reply-To: <201502101617.t1AGHH12081338@svn.freebsd.org> OpenPGP: id=6E4697CF; url=http://www.shatow.net/bryan/bryan2.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hvAL1Kvs7R0oS14cdtKhSDoSC0AADtqkr" X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Feb 2015 16:34:27 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --hvAL1Kvs7R0oS14cdtKhSDoSC0AADtqkr Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2/10/2015 10:17 AM, Edward Tomasz Napierala wrote: > Author: trasz > Date: Tue Feb 10 16:17:16 2015 > New Revision: 278521 > URL: https://svnweb.freebsd.org/changeset/base/278521 >=20 > Log: > Restore ABI compatibility, broken in r273127. Note that while this f= ixes > ABI with 10.1, it breaks ABI for 11-CURRENT, so rebuild of automountd= (8) > is neccessary. I was going to say __FreeBSD_version should probably be bumped, but I suppose it's unlikely there are any consumers outside of automountd(8) already. An entry in UPDATING may be worth adding for head noting the rebuild need. We don't all read commit logs. > =20 > MFC after: 2 weeks > Sponsored by: The FreeBSD Foundation >=20 > Modified: > head/sys/fs/autofs/autofs.c > head/sys/fs/autofs/autofs_ioctl.h >=20 > Modified: head/sys/fs/autofs/autofs.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/fs/autofs/autofs.c Tue Feb 10 16:01:16 2015 (r278520) > +++ head/sys/fs/autofs/autofs.c Tue Feb 10 16:17:16 2015 (r278521) > @@ -584,6 +584,34 @@ autofs_ioctl_request(struct autofs_daemo > } > =20 > static int > +autofs_ioctl_done_101(struct autofs_daemon_done_101 *add) > +{ > + struct autofs_request *ar; > + > + sx_xlock(&autofs_softc->sc_lock); > + TAILQ_FOREACH(ar, &autofs_softc->sc_requests, ar_next) { > + if (ar->ar_id =3D=3D add->add_id) > + break; > + } > + > + if (ar =3D=3D NULL) { > + sx_xunlock(&autofs_softc->sc_lock); > + AUTOFS_DEBUG("id %d not found", add->add_id); > + return (ESRCH); > + } > + > + ar->ar_error =3D add->add_error; > + ar->ar_wildcards =3D true; > + ar->ar_done =3D true; > + ar->ar_in_progress =3D false; > + cv_broadcast(&autofs_softc->sc_cv); > + > + sx_xunlock(&autofs_softc->sc_lock); > + > + return (0); > +} > + > +static int > autofs_ioctl_done(struct autofs_daemon_done *add) > { > struct autofs_request *ar; > @@ -658,6 +686,9 @@ autofs_ioctl(struct cdev *dev, u_long cm > case AUTOFSREQUEST: > return (autofs_ioctl_request( > (struct autofs_daemon_request *)arg)); > + case AUTOFSDONE101: > + return (autofs_ioctl_done_101( > + (struct autofs_daemon_done_101 *)arg)); > case AUTOFSDONE: > return (autofs_ioctl_done( > (struct autofs_daemon_done *)arg)); >=20 > Modified: head/sys/fs/autofs/autofs_ioctl.h > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > --- head/sys/fs/autofs/autofs_ioctl.h Tue Feb 10 16:01:16 2015 (r278520= ) > +++ head/sys/fs/autofs/autofs_ioctl.h Tue Feb 10 16:17:16 2015 (r278521= ) > @@ -71,6 +71,21 @@ struct autofs_daemon_request { > char adr_options[MAXPATHLEN]; > }; > =20 > +/* > + * Compatibility with 10.1-RELEASE automountd(8). > + */ > +struct autofs_daemon_done_101 { > + /* > + * Identifier, copied from adr_id. > + */ > + int add_id; > + > + /* > + * Error number, possibly returned to userland. > + */ > + int add_error; > +}; > + > struct autofs_daemon_done { > /* > * Identifier, copied from adr_id. > @@ -87,9 +102,15 @@ struct autofs_daemon_done { > * Error number, possibly returned to userland. > */ > int add_error; > + > + /* > + * Reserved for future use. > + */ > + int add_spare[7]; > }; > =20 > #define AUTOFSREQUEST _IOR('I', 0x01, struct autofs_daemon_request) > -#define AUTOFSDONE _IOW('I', 0x02, struct autofs_daemon_done) > +#define AUTOFSDONE101 _IOW('I', 0x02, struct autofs_daemon_done_101) > +#define AUTOFSDONE _IOW('I', 0x03, struct autofs_daemon_done) > =20 > #endif /* !AUTOFS_IOCTL_H */ >=20 --=20 Regards, Bryan Drewery --hvAL1Kvs7R0oS14cdtKhSDoSC0AADtqkr Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBAgAGBQJU2jMSAAoJEDXXcbtuRpfPNCIIAK9eD/Eufk1wFHncLdi88FAk rZ5lTGSRC0F9ZMnP59mYRpCu9RiYU76Ip+yjQgEE3Ly81/U7PvWROfuOZn6PMbNT f421mNAzrW7EXT9teIfiVV/kS2oQ0cUf04fuWtwIl3sGf4UScw9/0jlI8W37QF8H D71n+msaMwotwAzp1GEW0p7zoR/sGFUgk7dDzFYd5PTzMBLSlkFmdSg3HxT0BtJE wxbHhRwxOSddwbrZkVThjXare2h1TlG3r0NhQ/NsU3EJAluFiQtcF5Piz6Nc1qLj Z2/WSOaFZMipoaV6jaPZO8JiQ/+N0qNKrxvMxOZvNKULfbFuXudr0yImXQo4bPk= =E0jk -----END PGP SIGNATURE----- --hvAL1Kvs7R0oS14cdtKhSDoSC0AADtqkr--