aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/support
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2011-08-12 17:21:35 -0400
committerAlex Elder <aelder@sgi.com>2011-08-12 17:21:35 -0400
commitc59d87c460767bc35dafd490139d3cfe78fb8da4 (patch)
tree2aad8261f86488e501d9645bd35d1398906da46d /fs/xfs/support
parent06f8e2d6754dc631732415b741b5aa58a0f7133f (diff)
xfs: remove subdirectories
Use the move from Linux 2.6 to Linux 3.x as an excuse to kill the annoying subdirectories in the XFS source code. Besides the large amount of file rename the only changes are to the Makefile, a few files including headers with the subdirectory prefix, and the binary sysctl compat code that includes a header under fs/xfs/ from kernel/. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/support')
-rw-r--r--fs/xfs/support/uuid.c63
-rw-r--r--fs/xfs/support/uuid.h29
2 files changed, 0 insertions, 92 deletions
diff --git a/fs/xfs/support/uuid.c b/fs/xfs/support/uuid.c
deleted file mode 100644
index b83f76b6d410..000000000000
--- a/fs/xfs/support/uuid.c
+++ /dev/null
@@ -1,63 +0,0 @@
1/*
2 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc.
3 * All Rights Reserved.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18#include <xfs.h>
19
20/* IRIX interpretation of an uuid_t */
21typedef struct {
22 __be32 uu_timelow;
23 __be16 uu_timemid;
24 __be16 uu_timehi;
25 __be16 uu_clockseq;
26 __be16 uu_node[3];
27} xfs_uu_t;
28
29/*
30 * uuid_getnodeuniq - obtain the node unique fields of a UUID.
31 *
32 * This is not in any way a standard or condoned UUID function;
33 * it just something that's needed for user-level file handles.
34 */
35void
36uuid_getnodeuniq(uuid_t *uuid, int fsid [2])
37{
38 xfs_uu_t *uup = (xfs_uu_t *)uuid;
39
40 fsid[0] = (be16_to_cpu(uup->uu_clockseq) << 16) |
41 be16_to_cpu(uup->uu_timemid);
42 fsid[1] = be32_to_cpu(uup->uu_timelow);
43}
44
45int
46uuid_is_nil(uuid_t *uuid)
47{
48 int i;
49 char *cp = (char *)uuid;
50
51 if (uuid == NULL)
52 return 0;
53 /* implied check of version number here... */
54 for (i = 0; i < sizeof *uuid; i++)
55 if (*cp++) return 0; /* not nil */
56 return 1; /* is nil */
57}
58
59int
60uuid_equal(uuid_t *uuid1, uuid_t *uuid2)
61{
62 return memcmp(uuid1, uuid2, sizeof(uuid_t)) ? 0 : 1;
63}
diff --git a/fs/xfs/support/uuid.h b/fs/xfs/support/uuid.h
deleted file mode 100644
index 4732d71262cc..000000000000
--- a/fs/xfs/support/uuid.h
+++ /dev/null
@@ -1,29 +0,0 @@
1/*
2 * Copyright (c) 2000-2003,2005 Silicon Graphics, Inc.
3 * All Rights Reserved.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18#ifndef __XFS_SUPPORT_UUID_H__
19#define __XFS_SUPPORT_UUID_H__
20
21typedef struct {
22 unsigned char __u_bits[16];
23} uuid_t;
24
25extern int uuid_is_nil(uuid_t *uuid);
26extern int uuid_equal(uuid_t *uuid1, uuid_t *uuid2);
27extern void uuid_getnodeuniq(uuid_t *uuid, int fsid [2]);
28
29#endif /* __XFS_SUPPORT_UUID_H__ */