struct looplist {
int flag; /* scanning options */
FILE *proc; /* /proc/partitions */
- int ncur; /* current possition */
+ int ncur; /* current position */
int *minors; /* ary of minor numbers (when scan whole /dev) */
int nminors; /* number of items in *minors */
char name[128]; /* device name */
/*
* The classic scandir() is more expensive and less portable.
- * We needn't full loop device names -- minor numers (loop<N>)
+ * We needn't full loop device names -- minor numbers (loop<N>)
* are enough.
*/
static int
ll->flag &= ~LLFLG_DFLT;
}
- /* C) the worst posibility, scan all /dev or /dev/loop
+ /* C) the worst possibility, scan all /dev or /dev/loop
*/
if (!ll->minors) {
ll->nminors = (ll->flag & LLFLG_SUBDIR) ?
}
/*
- * HACK: here we're leeking a file descriptor,
+ * HACK: here we're leaking a file descriptor,
* but mount is a short-lived process anyway.
*/
if (!(*options & SETLOOP_AUTOCLEAR))