-
- device = argv[1];
- uid = atoi(argv[2]);
-
- if (quotactl(Q_GETQUOTA, device, uid, &odb) != 0) {
- perror("Can't get current quota info");
- exit(1);
+ }
+ else
+ {
+ uid_low = uid_high = atoi(argv[2]);
+ soft_quota = atoi(argv[3]);
+ }
+
+ get_device(argv[1]);
+
+ for (uid = uid_low; uid <= uid_high; uid++)
+ {
+ if (quotactl(Q_GETQUOTA, device, uid, &odb))
+ {
+ if (!(qfd = open(quotafilename, O_RDWR)))
+ {
+ perror("No quota file");
+ exit(1);
+ }
+
+ lseek(qfd, 32767 * sizeof(struct dqblk), L_SET);
+ write(qfd, &zblk, sizeof(struct dqblk));
+ close(qfd);
+
+ if (quotactl(Q_GETQUOTA, device, uid, &odb) != 0)
+ {
+ perror("Can't get current quota info");
+ exit(1);
+ }