]> wimlib.net Git - wimlib/commitdiff
Print each file or directory excluded
authorEric Biggers <ebiggers3@gmail.com>
Tue, 26 Mar 2013 21:27:45 +0000 (16:27 -0500)
committerEric Biggers <ebiggers3@gmail.com>
Tue, 26 Mar 2013 21:27:45 +0000 (16:27 -0500)
doc/imagex-capture.1.in
programs/imagex.c
src/add_image.c
src/ntfs-capture.c
src/wimlib.h
src/win32.c

index e36f0e1306bde4fd98145bf462a58317edd87a85..76b10e734f7b5c9df4755ffa1ca28cd52c08eb66 100644 (file)
@@ -202,6 +202,9 @@ forward slashes or backslashes, and the line separators may be either UNIX-style
 or DOS-style.  However, globs with spaces in them currently must not be quoted.
 Empty lines are ignored.
 
+On UNIX, drive letters are stripped from all patterns.  On Windows, drive
+letters are allowed, but must specify absolute paths and are treated as such.
+
 If this option is not specified the following default configuration file is
 used:
 
index 58c969ebcaf722252f9b7979a021c430077f224a..17cc36f617085c30669413ace8bd68b098b869af 100644 (file)
@@ -1106,7 +1106,7 @@ imagex_capture_or_append(int argc, tchar **argv)
 {
        int c;
        int open_flags = 0;
-       int add_image_flags = 0;
+       int add_image_flags = WIMLIB_ADD_IMAGE_FLAG_EXCLUDE_VERBOSE;
        int write_flags = 0;
        int compression_type = WIMLIB_COMPRESSION_TYPE_XPRESS;
        const tchar *wimfile;
index d6175c23cc928ed27ca706304bb71759d5f4a6ff..0e55a981e6e2e8ca2a4ba88ee812417ff9d83fb7 100644 (file)
@@ -286,7 +286,7 @@ unix_build_dentry_tree_recursive(struct wim_dentry **root_ret,
                        ret = WIMLIB_ERR_INVALID_CAPTURE_CONFIG;
                        goto out;
                }
-               if ((add_image_flags & WIMLIB_ADD_IMAGE_FLAG_VERBOSE)
+               if ((add_image_flags & WIMLIB_ADD_IMAGE_FLAG_EXCLUDE_VERBOSE)
                    && progress_func)
                {
                        union wimlib_progress_info info;
@@ -1042,6 +1042,9 @@ wimlib_add_image_multisource(WIMStruct *w,
        }
 #endif
 
+       if (add_image_flags & WIMLIB_ADD_IMAGE_FLAG_VERBOSE)
+               add_image_flags |= WIMLIB_ADD_IMAGE_FLAG_EXCLUDE_VERBOSE;
+
        if (!name || !*name) {
                ERROR("Must specify a non-empty string for the image name");
                return WIMLIB_ERR_INVALID_PARAM;
index 96650502597e6b9d20e7d4d970d1e319c34d8dd0..03c8720af1e568686e444e2bbfe5ec72f08a92cf 100644 (file)
@@ -511,7 +511,7 @@ build_dentry_tree_ntfs_recursive(struct wim_dentry **root_p,
        if (exclude_path(path, path_len, config, false)) {
                /* Exclude a file or directory tree based on the capture
                 * configuration file */
-               if ((add_image_flags & WIMLIB_ADD_IMAGE_FLAG_VERBOSE)
+               if ((add_image_flags & WIMLIB_ADD_IMAGE_FLAG_EXCLUDE_VERBOSE)
                    && progress_func)
                {
                        union wimlib_progress_info info;
index 1ccdd3b3e3b737b467437d8f0188a5d1a8893b82..dfa685f0938fa19242c67f4938c73430b28e7392 100644 (file)
@@ -645,6 +645,12 @@ struct wimlib_capture_source {
  * */
 #define WIMLIB_ADD_IMAGE_FLAG_STRICT_ACLS              0x00000040
 
+/** Call the progress function with the message
+ * ::WIMLIB_PROGRESS_MSG_SCAN_DENTRY when a directory or file is excluded from
+ * capture.  This is a subset of the messages provided by
+ * ::WIMLIB_ADD_IMAGE_FLAG_VERBOSE. */
+#define WIMLIB_ADD_IMAGE_FLAG_EXCLUDE_VERBOSE          0x00000080
+
 /******************************
  * WIMLIB_EXPORT_FLAG_* *
  ******************************/
index 4e49654880be1b6ee8a88aaa949cf2a9546fb8fd..57f6fdb9e0a3bcb842391badc4df6ced18f9c4f1 100644 (file)
@@ -751,7 +751,7 @@ win32_build_dentry_tree_recursive(struct wim_dentry **root_ret,
                        ret = WIMLIB_ERR_INVALID_CAPTURE_CONFIG;
                        goto out;
                }
-               if ((add_image_flags & WIMLIB_ADD_IMAGE_FLAG_VERBOSE)
+               if ((add_image_flags & WIMLIB_ADD_IMAGE_FLAG_EXCLUDE_VERBOSE)
                    && progress_func)
                {
                        union wimlib_progress_info info;