{
register struct cmd_item *ti;
char pname[100], *temp;
- afs_int32 seenpart = 0, seenvol = 0, vid = 0;
+ afs_int32 seenpart = 0, seenvol = 0, vid = 0, seenany = 0, i;
struct DiskPartition *partP;
#ifdef AFS_SGI_VNODE_GLUE
}
#endif
+#ifdef FAST_RESTART
+ for (i = 0; i < CMD_MAXPARMS; i++) {
+ if (as->parms[i].items) {
+ seenany = 1;
+ break;
+ }
+ }
+ if (!seenany) {
+ printf("Exiting immediately without salvage. Look into the FileLog to find volumes which really need to be salvaged!\n");
+ Exit(0);
+ }
+#endif /* FAST_RESTART */
if (ti = as->parms[0].items) { /* -partition */
seenpart = 1;
strncpy(pname, ti->data, 100);