Deleted Added
full compact
34c34
< __FBSDID("$FreeBSD: head/sbin/mdmfs/mdmfs.c 163952 2006-11-03 12:02:24Z ru $");
---
> __FBSDID("$FreeBSD: head/sbin/mdmfs/mdmfs.c 166749 2007-02-15 13:49:44Z matteo $");
50a51
> #include <ctype.h>
68a70
> static const char *mdsuffix; /* Suffix of memory disk device (e.g., ".uzip"). */
239c241
< if (*unitstr == '\0') {
---
> if (!isdigit(*unitstr)) {
241a244
> mdsuffix = unitstr;
244c247
< if (ul == ULONG_MAX || *p != '\0')
---
> if (ul == ULONG_MAX)
245a249,250
> if (*p != '\0')
> mdsuffix = p;
427,428c432,433
< rv = run(NULL, "%s%s /dev/%s%d %s", _PATH_MOUNT, args,
< mdname, unit, mtpoint);
---
> rv = run(NULL, "%s%s /dev/%s%d%s %s", _PATH_MOUNT, args,
> mdname, unit, mdsuffix, mtpoint);