mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
fs getfid output changed for consistency with Windows implementation
This patch removes the redundant volume ID from the output of fs getfid, and replaces it with the cell name, which is what the Windows implementation provides. Change-Id: I7ce009733a204eeb744683d9c4355c436e9e07aa Reviewed-on: http://gerrit.openafs.org/3007 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Jeffrey Altman <jaltman@openafs.org> Reviewed-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
b04a450df2
commit
d390df097c
@ -4254,6 +4254,7 @@ GetFidCmd(struct cmd_syndesc *as, void *arock)
|
||||
|
||||
afs_int32 code;
|
||||
int error = 0;
|
||||
char cell[MAXCELLCHARS];
|
||||
|
||||
for (ti = as->parms[0].items; ti; ti = ti->next) {
|
||||
struct VenusFid vfid;
|
||||
@ -4269,9 +4270,19 @@ GetFidCmd(struct cmd_syndesc *as, void *arock)
|
||||
continue;
|
||||
}
|
||||
|
||||
printf("File %s (%u.%u.%u) contained in volume %u\n",
|
||||
code = GetCell(ti->data, cell);
|
||||
if (code) {
|
||||
if (errno == ENOENT)
|
||||
fprintf(stderr, "%s: no such cell as '%s'\n", pn, ti->data);
|
||||
else
|
||||
Die(errno, ti->data);
|
||||
error = 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
printf("File %s (%u.%u.%u) located in cell %s\n",
|
||||
ti->data, vfid.Fid.Volume, vfid.Fid.Vnode, vfid.Fid.Unique,
|
||||
vfid.Fid.Volume);
|
||||
cell);
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user