| Summary: | mount(8) mount -p is missing the quota options | ||
|---|---|---|---|
| Product: | Base System | Reporter: | Jim.Pirzyk <Jim.Pirzyk> |
| Component: | bin | Assignee: | freebsd-bugs (Nobody) <bugs> |
| Status: | Closed Works As Intended | ||
| Severity: | Affects Only Me | CC: | imp |
| Priority: | Normal | ||
| Version: | 3.3-RELEASE | ||
| Hardware: | Any | ||
| OS: | Any | ||
|
Description
Jim.Pirzyk
1999-09-21 19:50:01 UTC
On 21 Sep, Jim.Pirzyk@disney.com wrote: >>Fix: This seems easy to fix (including the other missing options): --- mount.c.orig Tue Sep 21 23:17:00 1999 +++ mount.c Tue Sep 21 23:21:36 1999 @@ -721,6 +721,10 @@ if (flags & MNT_NOCLUSTERW) res = catopt(res, "noclusterw"); if (flags & MNT_NOSYMFOLLOW) res = catopt(res, "nosymfollow"); if (flags & MNT_SUIDDIR) res = catopt(res, "suiddir"); + if (flags & MOPT_USERQUOTA) res = catopt(res, "userquota"); + if (flags & MOPT_GROUPQUOTA) res = catopt(res, "groupquota"); + if (flags & MOPT_NOCLUSTERR) res = catopt(res, "noclusterr"); + if (flags & MOPT_NOCLUSTERW) res = catopt(res, "noclusterw"); return res; } Apparently, the fix wasn't as easy as I thought.... The attached patch fixes two missing options, but still doesn't handle the quota options. --- mount.c.orig Tue Sep 21 23:17:00 1999 +++ mount.c Thu Sep 23 21:14:05 1999 @@ -721,6 +721,8 @@ if (flags & MNT_NOCLUSTERW) res = catopt(res, "noclusterw"); if (flags & MNT_NOSYMFOLLOW) res = catopt(res, "nosymfollow"); if (flags & MNT_SUIDDIR) res = catopt(res, "suiddir"); + if (flags & MNT_NOCLUSTERR) res = catopt(res, "noclusterr"); + if (flags & MNT_NOCLUSTERW) res = catopt(res, "noclusterw"); return res; } Responsible Changed From-To: freebsd-bugs->pirzyk my PR Responsible Changed From-To: pirzyk->freebsd-bugs jim pirzyk returned his commit bit one year ago For bugs matching the following criteria: Status: In Progress Changed: (is less than) 2014-06-01 Reset to default assignee and clear in-progress tags. Mail being skipped Unfortunately, userquota and groupquota are not mount options. They are read by quotacheck(8) only and not passed to the filesystem. Since mount -p just looks at the current system state, it cannot get the quota information. It would have to match them up against the fstab. I've added a note to the mount man page. These patches won't produce working information. |