quota/quota-3.17-nfs-mntpoint.patch
OBS User autobuild 229d43e4e8 Accepting request 20914 from Base:System
Copy from Base:System/quota based on submit request 20914 from user mseben

OBS-URL: https://build.opensuse.org/request/show/20914
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/quota?expand=0&rev=20
2009-09-23 19:17:34 +00:00

32 lines
1.1 KiB
Diff

Index: quotasys.c
===================================================================
RCS file: /cvsroot/linuxquota/quota-tools/quotasys.c,v
retrieving revision 1.59
retrieving revision 1.60
diff -u -r1.59 -r1.60
--- quotasys.c 17 Dec 2008 12:40:07 -0000 1.59
+++ quotasys.c 21 Sep 2009 15:14:48 -0000 1.60
@@ -606,6 +606,10 @@
hlist_allocated = START_MNT_POINTS;
}
+ /* If directories are specified, cache all NFS mountpoints */
+ if (count && !(mntflags & MS_LOCALONLY))
+ mntflags |= MS_NFS_ALL;
+
if (init_mounts_scan(count, mntpoints, mntflags) < 0)
die(2, _("Cannot initialize mountpoint scan.\n"));
while ((mnt = get_next_mount())) {
@@ -987,9 +991,9 @@
continue;
}
if (nfs_fstype(mnt->mnt_type)) {
+ /* For network filesystems we must get device from root */
+ dev = st.st_dev;
if (!(flags & MS_NFS_ALL)) {
- /* For network filesystems we must get device from root */
- dev = st.st_dev;
for (i = 0; i < mnt_entries_cnt && mnt_entries[i].me_dev != dev; i++);
}
else /* Always behave as if the device was unique */