SOLARIS: Use vn_renamepath when available
authorAndrew Deason <adeason@sinenomine.net>
Tue, 8 Jan 2013 23:41:21 +0000 (17:41 -0600)
committerDerrick Brashear <shadow@your-file-system.com>
Wed, 9 Jan 2013 15:07:35 +0000 (07:07 -0800)
commit6c50960174f35d75fd50956e248318a9c826fca1
tree35aa64f709c618151e4cbc98e9f13ae8e55dcf62
parentc981ef17613e59d5b96dd4cd9f5ee023c2e5750b
SOLARIS: Use vn_renamepath when available

In Solaris 11.1, the signature of vn_setpath changes; it gains an
extra boolean_t argument called 'force'. Instead of trying to adapt to
it, call vn_renamepath() instead, which will do the correct thing and
call vn_setpath &co for us. vn_renamepath has existed since Solaris 10
Update 8, and is in all releases of Solaris 11. Only call it in
Solaris 11, since it makes the ifdefs easier, and there are no
problems with calling vn_setpath on Solaris 10.

Thanks to Frank Batschulat for all of the relevant information.

Change-Id: Iad4ada70abbb5ec2289c30149ab4c571fa8a68ff
Reviewed-on: http://gerrit.openafs.org/8894
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
src/afs/SOLARIS/osi_vnodeops.c