Use vsu_ExtractName() to get the RW volume name before doing the vid lookup
[openafs.git] / src / volser / vos.c
index ce9a163..fb7e805 100644 (file)
@@ -485,6 +485,18 @@ int fast,longlist, disp;
            fprintf(STDOUT,"    MaxQuota %10d K \n",pntr->maxquota);
            fprintf(STDOUT,"    Creation    %s",
                    ctime((time_t *)&pntr->creationDate));
+#if 0
+           fprintf(STDOUT,"    Copy        %s",
+                   ctime((time_t *)&pntr->copyDate));
+           if(!pntr->backupDate)
+               fprintf(STDOUT,"    Backup      Never\n");
+           else
+               fprintf(STDOUT,"    Backup      %s",
+                       ctime((time_t *)&pntr->backupDate));
+           if (pntr->accessDate)
+               fprintf(STDOUT,"    Last Access %s",
+                       ctime((time_t *)&pntr->accessDate));
+#endif
            if(pntr->updateDate < pntr->creationDate)
                fprintf(STDOUT,"    Last Update %s",
                        ctime((time_t *)&pntr->creationDate));
@@ -622,6 +634,18 @@ static void XDisplayFormat(a_xInfoP, a_servID, a_partID, a_totalOKP,
                        a_xInfoP->maxquota);
                fprintf(STDOUT, "    Creation    %s",
                        ctime((time_t *)&a_xInfoP->creationDate));
+#if 0
+               fprintf(STDOUT,"    Copy        %s",
+                       ctime((time_t *)&a_xInfoP->copyDate));
+               if(!a_xInfoP->backupDate)
+                   fprintf(STDOUT,"    Backup      Never\n");
+               else
+                   fprintf(STDOUT,"    Backup      %s",
+                       ctime((time_t *)&a_xInfoP->backupDate));
+               if (a_xInfoP->accessDate)
+                   fprintf(STDOUT,"    Last Access %s",
+                           ctime((time_t *)&a_xInfoP->accessDate));
+#endif
                if (a_xInfoP->updateDate < a_xInfoP->creationDate)
                    fprintf(STDOUT, "    Last Update %s",
                            ctime((time_t *)&a_xInfoP->creationDate));
@@ -2183,9 +2207,10 @@ static AddSite(as)
 register struct cmd_syndesc *as;
 {
    afs_int32 avolid, aserver, apart,code, err;
-   char apartName[10];
+   char apartName[10], avolname[VOLSER_MAXVOLNAME+1];
 
-       avolid = vsu_GetVolumeID(as->parms[2].items->data, cstruct, &err);
+       vsu_ExtractName(avolname, as->parms[2].items->data);;
+       avolid = vsu_GetVolumeID(avolname, cstruct, &err);
        if (avolid == 0) {
            if (err) PrintError("", err);
            else fprintf(STDERR, "vos: can't find volume '%s'\n", as->parms[2].items->data);
@@ -2221,9 +2246,10 @@ register struct cmd_syndesc *as;
 { 
 
     afs_int32 avolid, aserver, apart, code, err;
-    char apartName[10];
+    char apartName[10], avolname[VOLSER_MAXVOLNAME+1];
 
-       avolid = vsu_GetVolumeID(as->parms[2].items->data, cstruct, &err);
+       vsu_ExtractName(avolname, as->parms[2].items->data);
+       avolid = vsu_GetVolumeID(avolname, cstruct, &err);
        if (avolid == 0) {
            if (err) PrintError("", err);
            else fprintf(STDERR, "vos: can't find volume '%s'\n", as->parms[2].items->data);