aboutsummaryrefslogtreecommitdiff
path: root/src/global.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2014-12-01 15:02:38 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2014-12-01 15:02:38 +0200
commit3945f9db44c935608caa5f084fd7f67ae59ee9e1 (patch)
tree40dc48c8b3a8872bb8aaafdc9af1133a11d4e460 /src/global.c
parent4900a5e7be9ad90fda7c4743fd31613ceb0eda05 (diff)
downloadcpio-3945f9db44c935608caa5f084fd7f67ae59ee9e1.tar.gz
cpio-3945f9db44c935608caa5f084fd7f67ae59ee9e1.tar.bz2
New options to create device and inode-independent archives.
* src/util.c (inode_val): New member trans_inode (find_inode_val): New function. (find_inode_file): Rewrite using the above. (add_inode): Initialize the trans_inode member depending on the value of renumber_inodes_option. (get_inode_and_dev): New function. (stat_to_cpio): Use get_inode_and_dev. (arf_stores_inode_p): New function. * src/extern.h (renumber_inodes_option) (ignore_devno_option): New externs. * src/global.c (renumber_inodes_option) (ignore_devno_option): New variables. * src/main.c: Add new options. * NEWS: Document changes. * doc/cpio.1: Document new options. * doc/cpio.texi: Likewise.
Diffstat (limited to 'src/global.c')
-rw-r--r--src/global.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/global.c b/src/global.c
index c699f6e..0449193 100644
--- a/src/global.c
+++ b/src/global.c
@@ -195,3 +195,7 @@ int (*xstat) ();
void (*copy_function) () = 0;
char *change_directory_option;
+
+int renumber_inodes_option;
+int ignore_devno_option;
+

Return to:

Send suggestions and report system problems to the System administrator.