summaryrefslogtreecommitdiff
path: root/isofs/isofs.h
diff options
context:
space:
mode:
authorThomas Bushnell <thomas@gnu.org>1997-07-18 20:39:01 +0000
committerThomas Bushnell <thomas@gnu.org>1997-07-18 20:39:01 +0000
commit274eaee48a9dd0a3b5ad0bb1dc44e5ed02daf388 (patch)
tree39b54ed3227af1a431ca9c261feca3490b0a93e8 /isofs/isofs.h
parentab9c836772ab3dfdd28e769dfd53d16999900b7a (diff)
Initial versions.
Diffstat (limited to 'isofs/isofs.h')
-rw-r--r--isofs/isofs.h88
1 files changed, 88 insertions, 0 deletions
diff --git a/isofs/isofs.h b/isofs/isofs.h
new file mode 100644
index 00000000..25c449a6
--- /dev/null
+++ b/isofs/isofs.h
@@ -0,0 +1,88 @@
+/*
+ Copyright (C) 1997 Free Software Foundation, Inc.
+ Written by Thomas Bushnell, n/BSG.
+
+ This file is part of the GNU Hurd.
+
+ The GNU Hurd is free software; you can redistribute it and/or
+ modify it under the terms of the GNU General Public License as
+ published by the Free Software Foundation; either version 2, or (at
+ your option) any later version.
+
+ The GNU Hurd is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
+
+
+#include <sys/types.h>
+#include <hurd/diskfs.h>
+#include <hurd/diskfs-pager.h>
+#include <hurd/store.h>
+
+#include "rr.h"
+
+/* There is no such thing as an inode in this format, all such informatio n
+ being recorded in the directory entry. So we report inode numbers as
+ absolute offsets from DISK_IMAGE. */
+
+struct disknode
+{
+ off_t file_start; /* In store->block_size units */
+
+ struct user_pager_info *fileinfo;
+
+ char *link_target; /* for S_ISLNK */
+};
+
+struct user_pager_info
+{
+ struct node *np;
+ enum pager_type
+ {
+ DISK,
+ FILE_DATA,
+ } type;
+ struct pager *p;
+};
+
+/* The physical media */
+extern struct store *store;
+
+char *host_name;
+
+/* Name we are mounted on, with trailing slash */
+char *mounted_on;
+
+/* Mapped image of disk */
+void *disk_image;
+
+/* Processed sblock info */
+
+/* Block size of pointers etc. on disk (6.2.2). */
+size_t logical_block_size;
+
+/* Size of "logical sectors" (6.1.2). These are 2048 or the
+ largest power of two that will fit in a physical sector, whichever is
+ greater. I don't know how to fetch the physical sector size; so
+ we'll just use a constant. */
+#define logical_sector_size 2048
+
+/* Unprocessed superblock */
+struct sblock *sblock;
+
+
+
+void drop_pager_softrefs (struct node *);
+void allow_pager_softrefs (struct node *);
+void create_disk_pager (void);
+
+error_t load_inode (struct node **, struct dirrect *, struct rrip_lookup *);
+error_t calculate_file_start (struct dirrect *, off_t *, struct rrip_lookup *);
+
+char *isodate_915 (char *, struct timespec *);
+char *isodate_84261 (char *, struct timespec *);