Typo fix. While I am at it, remove the name translation from block to raw
device, they are equivalent now (or more accurately we no longer have block devices). Submitted by: Gregory Sutter <gsutter@pobox.com>
This commit is contained in:
parent
2bfea7a2b0
commit
b20ae6a0b3
@ -109,9 +109,8 @@ main(argc, argv)
|
||||
errx(1, "cannot work on read-write mounted file system");
|
||||
}
|
||||
active = 1;
|
||||
special = rawname(fs->fs_spec, device);
|
||||
} else
|
||||
special = fs->fs_spec;
|
||||
}
|
||||
special = fs->fs_spec;
|
||||
}
|
||||
again:
|
||||
if (stat(special, &st) < 0) {
|
||||
@ -203,7 +202,7 @@ main(argc, argv)
|
||||
case 'n':
|
||||
name = "soft updates";
|
||||
if (argc < 1)
|
||||
errx(10, "-s: missing %s", name);
|
||||
errx(10, "-n: missing %s", name);
|
||||
argc--, argv++;
|
||||
if (strcmp(*argv, "enable") == 0) {
|
||||
sblock.fs_flags |= FS_DOSOFTDEP;
|
||||
@ -349,25 +348,3 @@ bread(bno, buf, cnt)
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
||||
char *
|
||||
rawname(special, pathbuf)
|
||||
char *special;
|
||||
char *pathbuf;
|
||||
{
|
||||
char *p;
|
||||
int n;
|
||||
|
||||
p = strrchr(special, '/');
|
||||
if (p) {
|
||||
n = ++p - special;
|
||||
bcopy(special, pathbuf, n);
|
||||
} else {
|
||||
strcpy(pathbuf, _PATH_DEV);
|
||||
n = strlen(pathbuf);
|
||||
p = special;
|
||||
}
|
||||
pathbuf[n++] = 'r';
|
||||
strcpy(pathbuf + n, p);
|
||||
return pathbuf;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user