diff options
author | Theodore Ts'o <tytso@mit.edu> | 1998-02-24 20:22:23 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 1998-02-24 20:22:23 +0000 |
commit | a02ce9df5ff5db2982462aec7162f7142dc18131 (patch) | |
tree | a6ce1c09cdc656322360b6286109433306978879 /e2fsck/swapfs.c | |
parent | c775256443ff12edef2b72f47dcdcf50d1dc3526 (diff) | |
download | e2fsprogs-a02ce9df5ff5db2982462aec7162f7142dc18131.tar.gz |
Many files:
Change the progress function to return an integer; if returns 1, then
the progress function is expected to have set the e2fsck context flag
signalling a user abort, and the caller should also initiate a user
abort.
Diffstat (limited to 'e2fsck/swapfs.c')
-rw-r--r-- | e2fsck/swapfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/e2fsck/swapfs.c b/e2fsck/swapfs.c index 31c0d9fe..605b8e3c 100644 --- a/e2fsck/swapfs.c +++ b/e2fsck/swapfs.c @@ -160,7 +160,7 @@ static void swap_inodes(e2fsck_t ctx) ext2fs_inode_has_valid_blocks(inode))) swap_inode_blocks(ctx, ino, block_buf, inode); - if (ctx->flags & E2F_FLAG_ABORT) + if (ctx->flags & E2F_FLAG_SIGNAL_MASK) return; if (fs->flags & EXT2_FLAG_SWAP_BYTES_WRITE) @@ -216,7 +216,7 @@ void swap_filesys(e2fsck_t ctx) fs->flags |= EXT2_FLAG_SWAP_BYTES_WRITE; } swap_inodes(ctx); - if (ctx->flags & E2F_FLAG_ABORT) + if (ctx->flags & E2F_FLAG_SIGNAL_MASK) return; if (fs->flags & EXT2_FLAG_SWAP_BYTES_WRITE) fs->flags |= EXT2_FLAG_SWAP_BYTES; |