Displaying 7 results from an estimated 7 matches for "block_num".
2003 Aug 20
1
(Fwd) Lost data on FreeBSD tape (fwd)
...Start writing on next volume */
#define ST_SHORT (1<<13) /* Short block read */
#define BLOCK_SIZE (512 * 126)
/* Exported variables */
int quit = 0;
char buf[100000];
int verbose = 0;
int debug_level = 0;
int fd = 0;
struct DEVICE {
int fd;
int dev_errno;
int file;
int block_num;
int state;
char *buf;
int buf_len;
char *dev_name;
int file_addr;
};
DEVICE *dev;
#define uint32_t unsigned long
#define uint64_t unsigned long long
/* Forward referenced subroutines */
static void do_tape_cmds();
static void helpcmd();
static void scancmd();
static void rew...
2012 Aug 02
2
[PATCH] add additional checks to ext2 loader
...diff --git a/core/fs/ext2/ext2.c b/core/fs/ext2/ext2.c
index bddde8d..8f0f2a4 100644
--- a/core/fs/ext2/ext2.c
+++ b/core/fs/ext2/ext2.c
@@ -139,6 +139,8 @@ ext2_get_inode(struct fs_info *fs, int inr)
block_off = inode_offset % EXT2_INODES_PER_BLOCK(fs);
data = get_cache(fs->fs_dev, block_num);
+ if (!data)
+ return NULL;
return (const struct ext2_inode *)
(data + block_off * EXT2_SB(fs)->s_inode_size);
@@ -164,7 +166,7 @@ static struct inode *ext2_iget_by_inr(struct fs_info *fs, uint32_t inr)
struct inode *inode;
e_inode = ext2_get_inode(fs, inr);
- if (!(...
2014 May 29
0
[PATCH 2/2] core/fs: Add support for Unix File system 1/2.
...r->dir_entry_len;
+ }
+ }
+ ufs_debug("(not found)\n");
+ return NULL;
+}
+
+/*
+ * Get either UFS1/2 inode structures.
+ */
+static const void *
+ufs_get_inode(struct fs_info *fs, int inr)
+{
+ const char *data;
+ uint32_t group, inode_offset, inode_table;
+ uint32_t block_num, block_off;
+
+ /* Get cylinder group nr. */
+ group = inr / UFS_SB(fs)->inodes_per_cg;
+ /*
+ * Ensuring group will not exceed the range 0:groups_count-1.
+ * By the way, this should *never* happen.
+ * Unless the (on-disk) fs structure is corrupted!
+ */
+ if (group...
2013 Jul 12
1
[PATCH 001/001] core/fs: Add support to Unix File system 1/2.
...r->dir_entry_len;
+ }
+ }
+ ufs_debug("(not found)\n");
+ return NULL;
+}
+
+/*
+ * Get either UFS1/2 inode structures.
+ */
+static const void *
+ufs_get_inode(struct fs_info *fs, int inr)
+{
+ const char *data;
+ uint32_t group, inode_offset, inode_table;
+ uint32_t block_num, block_off;
+
+ /* Get cylinder group nr. */
+ group = inr / UFS_SB(fs)->inodes_per_cg;
+ /*
+ * Ensuring group will not exceed the range 0:groups_count-1.
+ * By the way, this should *never* happen.
+ * Unless the (on-disk) fs structure is corrupted!
+ */
+ if (group...
2011 Jun 29
33
Re: Mis-Design of Btrfs?
On 06/27/2011 07:46 AM, NeilBrown wrote:
> On Thu, 23 Jun 2011 12:53:37 +0200 Nico Schottelius
> <nico-lkml-20110623@schottelius.org> wrote:
>
>> Good morning devs,
>>
>> I''m wondering whether the raid- and volume-management-builtin of btrfs is
>> actually a sane idea or not.
>> Currently we do have md/device-mapper support for raid
>>
2014 May 29
3
[PATCH 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com>
Wrote the documentation below. I think it would be good to push the doc to
the wiki as soon as the UFS support gets merged.
Unix Fast File System (UFS/FFS) 1/2 on Syslinux - (usage/install)
-----
There is a confusion about the name of this file system, then I decided to
contact the author who replied:
"The name has always been
2014 May 29
3
[PATCH v2 0/2] UFS1/2 support series
From: Raphael S. Carvalho <raphael.scarv at gmail.com>
Change since v1:
* Fix bug on dentry structure (thank you specification; btw, sarcasm), and
consequently a bug on ufs_readdir.
* Add readlink support (applied tests for symlinks whose destionation path
were stored in blk pointers and the file itself).
* Several improvements.
Wrote the documentation below. I think it would be good to