Displaying 4 results from an estimated 4 matches for "file_key".
2003 Mar 04
0
hashing known_hosts
...snprintf(hostline, sizeof(hostline), "%s,%s", host,ip);
+ SHA1(hostline, strlen(hostline), md);
+ uuencode(md, SHA_DIGEST_LENGTH, uu, SHA_DIGEST_LENGTH*2);
+ host_status = check_host_in_hostfile(host_file, uu, host_key,
+ file_key, &host_line);
+ if (host_status == HOST_NEW) {
+ host_file = system_hostfile;
+ host_status = check_host_in_hostfile(host_file, uu,
+ host_key, file_key, &host_line);
+ }
+ } else {
+#...
2012 Jun 21
0
[RFC PATCH V2] Btrfs: introduce extent buffer cache for each i-node
...os,
+ struct inode *inode, u64 pos,
u64 disk_offset, u64 disk_num_bytes,
u64 num_bytes, u64 offset, u64 ram_bytes,
u8 compression, u8 encryption, u16 other_encoding)
@@ -48,6 +48,7 @@ int btrfs_insert_file_extent(struct btrfs_trans_handle *trans,
struct btrfs_key file_key;
struct btrfs_path *path;
struct extent_buffer *leaf;
+ u64 objectid = btrfs_ino(inode);
path = btrfs_alloc_path();
if (!path)
@@ -57,8 +58,8 @@ int btrfs_insert_file_extent(struct btrfs_trans_handle *trans,
btrfs_set_key_type(&file_key, BTRFS_EXTENT_DATA_KEY);
path->leave_sp...
2011 Mar 23
0
[PATCH] Btrfs: cleanup some BUG_ON()
...fs/file-item.c 2011-03-15 10:20:32.000000000 +0900
+++ linux-2.6.38.new/fs/btrfs/file-item.c 2011-03-23 11:28:09.000000000 +0900
@@ -48,7 +48,8 @@ int btrfs_insert_file_extent(struct btrf
struct extent_buffer *leaf;
path = btrfs_alloc_path();
- BUG_ON(!path);
+ if (!path)
+ return -ENOMEM;
file_key.objectid = objectid;
file_key.offset = pos;
btrfs_set_key_type(&file_key, BTRFS_EXTENT_DATA_KEY);
diff -urNp linux-2.6.38/fs/btrfs/inode-map.c linux-2.6.38.new/fs/btrfs/inode-map.c
--- linux-2.6.38/fs/btrfs/inode-map.c 2011-03-15 10:20:32.000000000 +0900
+++ linux-2.6.38.new/fs/btrfs/inode-...
2006 Feb 04
2
[PATCH] allow user to update changed key in known_hosts
...Key *);
static void warn_changed_key(Key *);
+static int ask_connect_with_new_key(const char *host, Key *host_key,
+ const char* ip, const char* type, HostStatus ip_status,
+ const char *user_hostfile);
/*
* Connect to the given ssh server using a proxy command.
@@ -524,10 +527,9 @@
Key *file_key;
const char *type = key_type(host_key);
char *ip = NULL;
- char hostline[1000], *hostp, *fp;
HostStatus host_status;
HostStatus ip_status;
- int r, local = 0, host_ip_differ = 0;
+ int local = 0, host_ip_differ = 0;
int salen;
char ntop[NI_MAXHOST];
char msg[1024];
@@ -674,71 +676,10...