Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F166482627
D47880.id147559.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
5 KB
Referenced Files
None
Subscribers
None
D47880.id147559.diff
View Options
diff --git a/sys/fs/cd9660/cd9660_lookup.c b/sys/fs/cd9660/cd9660_lookup.c
--- a/sys/fs/cd9660/cd9660_lookup.c
+++ b/sys/fs/cd9660/cd9660_lookup.c
@@ -47,8 +47,8 @@
#include <fs/cd9660/iso_rrip.h>
struct cd9660_ino_alloc_arg {
- cd_ino_t ino;
- cd_ino_t i_ino;
+ ino_t ino;
+ ino_t i_ino;
struct iso_directory_record *ep;
};
@@ -115,7 +115,7 @@
struct cd9660_ino_alloc_arg dd_arg;
u_long bmask; /* block offset mask */
int error;
- cd_ino_t ino, i_ino;
+ ino_t ino, i_ino;
int ltype, reclen;
u_short namelen;
int isoflags;
diff --git a/sys/fs/cd9660/cd9660_node.h b/sys/fs/cd9660/cd9660_node.h
--- a/sys/fs/cd9660/cd9660_node.h
+++ b/sys/fs/cd9660/cd9660_node.h
@@ -56,7 +56,7 @@
struct iso_node {
struct vnode *i_vnode; /* vnode associated with this inode */
- cd_ino_t i_number; /* the identity of the inode */
+ ino_t i_number; /* the identity of the inode */
/* we use the actual starting block of the file */
struct iso_mnt *i_mnt; /* filesystem associated with this inode */
struct lockf *i_lockf; /* head of byte-level lock list */
diff --git a/sys/fs/cd9660/cd9660_node.c b/sys/fs/cd9660/cd9660_node.c
--- a/sys/fs/cd9660/cd9660_node.c
+++ b/sys/fs/cd9660/cd9660_node.c
@@ -281,10 +281,10 @@
return cd9660_tstamp_conv7(buf, pu, ISO_FTYPE_DEFAULT);
}
-cd_ino_t
+ino_t
isodirino(struct iso_directory_record *isodir, struct iso_mnt *imp)
{
- cd_ino_t ino;
+ ino_t ino;
/*
* Note there is an inverse calculation in
@@ -293,7 +293,7 @@
* and also a calculation of the isodir pointer
* from an inode in cd9660_vnops.c:cd9660_readlink()
*/
- ino = ((cd_ino_t)isonum_733(isodir->extent) +
+ ino = ((ino_t)isonum_733(isodir->extent) +
isonum_711(isodir->ext_attr_length)) << imp->im_bshift;
return ino;
}
diff --git a/sys/fs/cd9660/cd9660_rrip.c b/sys/fs/cd9660/cd9660_rrip.c
--- a/sys/fs/cd9660/cd9660_rrip.c
+++ b/sys/fs/cd9660/cd9660_rrip.c
@@ -593,7 +593,7 @@
int
cd9660_rrip_getname(struct iso_directory_record *isodir, char *outbuf,
- u_short *outlen, cd_ino_t *inump, struct iso_mnt *imp)
+ u_short *outlen, ino_t *inump, struct iso_mnt *imp)
{
ISO_RRIP_ANALYZE analyze;
RRIP_TABLE *tab;
diff --git a/sys/fs/cd9660/cd9660_vfsops.c b/sys/fs/cd9660/cd9660_vfsops.c
--- a/sys/fs/cd9660/cd9660_vfsops.c
+++ b/sys/fs/cd9660/cd9660_vfsops.c
@@ -560,7 +560,7 @@
struct iso_mnt *imp = VFSTOISOFS(mp);
struct iso_directory_record *dp =
(struct iso_directory_record *)imp->root;
- cd_ino_t ino = isodirino(dp, imp);
+ ino_t ino = isodirino(dp, imp);
/*
* With RRIP we must use the `.' entry of the root directory.
@@ -660,15 +660,15 @@
cd9660_vfs_hash_cmp(struct vnode *vp, void *pino)
{
struct iso_node *ip;
- cd_ino_t ino;
+ ino_t ino;
ip = VTOI(vp);
- ino = *(cd_ino_t *)pino;
+ ino = *(ino_t *)pino;
return (ip->i_number != ino);
}
int
-cd9660_vget_internal(struct mount *mp, cd_ino_t ino, int flags,
+cd9660_vget_internal(struct mount *mp, ino_t ino, int flags,
struct vnode **vpp, int relocated, struct iso_directory_record *isodir)
{
struct iso_mnt *imp;
diff --git a/sys/fs/cd9660/cd9660_vnops.c b/sys/fs/cd9660/cd9660_vnops.c
--- a/sys/fs/cd9660/cd9660_vnops.c
+++ b/sys/fs/cd9660/cd9660_vnops.c
@@ -443,7 +443,7 @@
u_short namelen;
u_int ncookies = 0;
uint64_t *cookies = NULL;
- cd_ino_t ino;
+ ino_t ino;
dp = VTOI(vdp);
imp = dp->i_mnt;
diff --git a/sys/fs/cd9660/iso.h b/sys/fs/cd9660/iso.h
--- a/sys/fs/cd9660/iso.h
+++ b/sys/fs/cd9660/iso.h
@@ -218,15 +218,6 @@
enum ISO_FTYPE { ISO_FTYPE_DEFAULT, ISO_FTYPE_9660, ISO_FTYPE_RRIP,
ISO_FTYPE_JOLIET, ISO_FTYPE_ECMA, ISO_FTYPE_HIGH_SIERRA };
-#ifndef ISOFSMNT_ROOT
-#define ISOFSMNT_ROOT 0
-#endif
-
-/*
- * When ino_t becomes 64-bit, we can remove this definition in favor of ino_t.
- */
-typedef __uint64_t cd_ino_t;
-
struct iso_mnt {
uint64_t im_flags;
@@ -265,7 +256,7 @@
struct ifid {
u_short ifid_len;
u_short ifid_pad;
- cd_ino_t ifid_ino;
+ ino_t ifid_ino;
long ifid_start;
} __packed;
@@ -276,7 +267,7 @@
#define lblkno(imp, loc) ((loc) >> (imp)->im_bshift)
#define blksize(imp, ip, lbn) ((imp)->logical_block_size)
-int cd9660_vget_internal(struct mount *, cd_ino_t, int, struct vnode **, int,
+int cd9660_vget_internal(struct mount *, ino_t , int, struct vnode **, int,
struct iso_directory_record *);
#define cd9660_sysctl ((int (*)(int *, u_int, void *, size_t *, void *, \
size_t, struct proc *))eopnotsupp)
@@ -287,7 +278,7 @@
int isochar(u_char *, u_char *, int, u_short *, int *, int, void *);
int isofncmp(u_char *, int, u_char *, int, int, int, void *, void *);
void isofntrans(u_char *, int, u_char *, u_short *, int, int, int, int, void *);
-cd_ino_t isodirino(struct iso_directory_record *, struct iso_mnt *);
+ino_t isodirino(struct iso_directory_record *, struct iso_mnt *);
u_short sgetrune(const char *, size_t, char const **, int, void *);
#endif /* _KERNEL */
diff --git a/sys/fs/cd9660/iso_rrip.h b/sys/fs/cd9660/iso_rrip.h
--- a/sys/fs/cd9660/iso_rrip.h
+++ b/sys/fs/cd9660/iso_rrip.h
@@ -63,7 +63,7 @@
off_t iso_ce_off; /* offset of continuation area */
int iso_ce_len; /* length of continuation area */
struct iso_mnt *imp; /* mount structure */
- cd_ino_t *inump; /* inode number pointer */
+ ino_t *inump; /* inode number pointer */
char *outbuf; /* name/symbolic link output area */
u_short *outlen; /* length of above */
u_short maxlen; /* maximum length of above */
@@ -76,7 +76,7 @@
struct iso_node *inop, struct iso_mnt *imp);
int cd9660_rrip_getname(struct iso_directory_record *isodir,
char *outbuf, u_short *outlen,
- cd_ino_t *inump, struct iso_mnt *imp);
+ ino_t *inump, struct iso_mnt *imp);
int cd9660_rrip_getsymname(struct iso_directory_record *isodir,
char *outbuf, u_short *outlen,
struct iso_mnt *imp);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 14, 7:42 PM (58 m, 51 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
36742034
Default Alt Text
D47880.id147559.diff (5 KB)
Attached To
Mode
D47880: cd9660: Remove some unneeded definitions
Attached
Detach File
Event Timeline
Log In to Comment