Solaris: Default to fs_pathconf in afs_pathconf
authorAndrew Deason <adeason@sinenomine.net>
Tue, 22 Sep 2009 21:59:34 +0000 (16:59 -0500)
committerDerrick Brashear <shadow|account-1000005@unknown>
Wed, 23 Sep 2009 23:53:05 +0000 (16:53 -0700)
commit07b1dc861bee97c44507f437685d7f8c3d094807
tree622c4d4075d922ac8dc5d495729e5766fa513c72
parentb56a794f8d77987df07d2efcb8af5f9d63f6e678
Solaris: Default to fs_pathconf in afs_pathconf

Instead of returning EINVAL in afs_pathconf when we don't recognize the
pathconf command, return the result of fs_pathconf. fs_pathconf provides
sensible defaults or correctly represents a filesystem not implementing
a particular pathconf cmd; all in-tree (Open)Solaris filesystems call
fs_pathconf for unimplemented commands. Returning EINVAL allegedly
represents that the fileystem does not support pathconf at all.

Also, account for OpenSolaris adding another parameter to
pathconf-related calls.

Reviewed-on: http://gerrit.openafs.org/488
Tested-by: Derrick Brashear <shadow@dementia.org>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
src/afs/SOLARIS/osi_vnodeops.c