Merge of master-melb:xfs-cmds:24382a by kenmcd.
#include "init.h"
#include "io.h"
-#if defined(__sgi__)
-# define ino64p ino64_t *
-#else
-# define ino64p __u64 *
-#endif
-
static cmdinfo_t imap_cmd;
int
int count;
int nent;
int i;
- __s64 last = 0;
+ __uint64_t last = 0;
xfs_inogrp_t *t;
xfs_fsop_bulkreq_t bulkreq;
t = malloc(nent * sizeof(*t));
- bulkreq.lastip = (ino64p)&last;
+ bulkreq.lastip = &last;
bulkreq.icount = nent;
bulkreq.ubuffer = (void *)t;
bulkreq.ocount = &count;
{
xfs_fsop_bulkreq_t bulkreq;
xfs_bstat_t *buf;
- __int64_t last = 0;
+ __uint64_t last = 0;
__int32_t count;
int i, sts, fsfd;
du_t **dp;
/*
* Identifier (uid/gid/prid) cache routines
*/
+#define NMAX 32
extern char *uid_to_name(__uint32_t __uid);
extern char *gid_to_name(__uint32_t __gid);
extern char *prid_to_name(__uint32_t __prid);
#include <xfs/command.h>
#include <pwd.h>
#include <grp.h>
+#include <utmp.h>
#include "init.h"
#include "quota.h"
uint flags)
{
struct passwd *u;
- char n[MAXNAMELEN];
+ char n[NMAX];
uint id;
if (upper) { /* identifier range specified */
uint flags)
{
struct group *g;
- char n[MAXNAMELEN];
+ char n[NMAX];
uint id;
if (upper) { /* identifier range specified */
uint flags)
{
fs_project_t *p;
- char n[MAXNAMELEN];
+ char n[NMAX];
uint id;
if (upper) { /* identifier range specified */
* Identifier caches - user/group/project names/IDs
*/
-#ifndef UT_NAMESIZE
-struct utmp utmp;
-#define NMAX (sizeof(utmp.ut_name))
-#else
-#define NMAX UT_NAMESIZE
-#endif
#define NID 4096
#define IDMASK (NID-1)