fs: display cell not available on ESRCH
authorMichael Meffie <mmeffie@sinenomine.net>
Fri, 7 Feb 2014 14:55:31 +0000 (06:55 -0800)
committerD Brashear <shadow@your-file-system.com>
Tue, 25 Mar 2014 16:53:12 +0000 (09:53 -0700)
commit8beba712d95b637225f215534a759961ff4d80a9
treeff04a5b00c1eccfbe9ad46dce13615f21d642792
parent3db647e327bbb4621f4d66f85678424471453703
fs: display cell not available on ESRCH

The cache manager pioctls abuse ESRCH to represent errors due to
unavailable cell information.  Give a more sensible error message to
the user when a pioctl returns an ESRCH error, instead of "no such
process", which is the conventional meaning of ESRCH.

The new error message is consistent with the Windows implementation
of fs.

For example, on a host with a misconfigured ThisCell and/or CellServDB.

    $ fs wscell
    fs: No such process

becomes:

    $ fs wscell
    fs: Cell name not recognized.

Change-Id: Ibdcb0957118205b9540cae07b3cafa65c51ff497
Reviewed-on: http://gerrit.openafs.org/10824
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: D Brashear <shadow@your-file-system.com>
src/venus/fs.c