X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=src%2Fntfs-apply.c;h=6243a914dfd3a2a6e05527e5afb66c85b5d828c9;hp=9b10b3e30e58129621793ebf1a286d390c2cd44c;hb=7be97dea91241da8a7ca5f0ff32f320e692fe53f;hpb=21a83b1b20f5ae138bc4bb9bdedd80a2a2d92c0a diff --git a/src/ntfs-apply.c b/src/ntfs-apply.c index 9b10b3e3..6243a914 100644 --- a/src/ntfs-apply.c +++ b/src/ntfs-apply.c @@ -1,3 +1,11 @@ +/* + * ntfs-apply.c + * + * Apply a WIM image to a NTFS volume, restoring everything we can, including + * security data and alternate data streams. There should be no loss of + * information. + */ + /* * Copyright (C) 2012 Eric Biggers * @@ -371,6 +379,14 @@ static int do_wim_apply_image_ntfs(WIMStruct *w, const char *device, int extract return ret; } + +/* + * API entry point for applying a WIM image to a NTFS volume. + * + * Please note that this is a NTFS *volume* and not a directory. The intention + * is that the volume contain an empty filesystem, and the WIM image contain a + * full filesystem to be applied to the volume. + */ WIMLIBAPI int wimlib_apply_image_to_ntfs_volume(WIMStruct *w, int image, const char *device, int flags) { @@ -384,7 +400,7 @@ WIMLIBAPI int wimlib_apply_image_to_ntfs_volume(WIMStruct *w, int image, return WIMLIB_ERR_INVALID_PARAM; } if (flags & (WIMLIB_EXTRACT_FLAG_SYMLINK | WIMLIB_EXTRACT_FLAG_HARDLINK)) { - ERROR("Cannot specifcy symlink or hardlink flags when applying "); + ERROR("Cannot specify symlink or hardlink flags when applying "); ERROR("directly to a NTFS volume"); return WIMLIB_ERR_INVALID_PARAM; }