본문 바로가기

diff

patch 적용하기, diff, sdiff 원문 : https://blog.naver.com/zeta0807/220943464598 1. diff --brief간략한 폴더비교를 할 일이 자주 있다. 아래와 같이 사용하면 된다.diff --brief -r folder1/ folder2/아래 site를 참조하였으며 엄청난 option들이 있다. http://stackoverflow.com/questions/4997693/given-two-directory-trees-how-can-i-find-out-which-files-differ You said Linux, so you luck out (at least it should be available, not sure when it was added): diff --brief -r dir1/ dir2/ .. 더보기
wrtie 비교 O_DIRECT and no-delay-alloc mount option - O_DIRCET optionopen 함수에 주는 flag - no-delay-alloc optionfile system mount option : file write 를 보통 지연시켜서 하는데 이기능을 사용하지 않음. umount /cache 일반적인 mount 명령어mount -t ext4 /dev/block/mmcblk0p27 /cache no delay alloc mount 명령어mount -t ext4 -o nodelalloc /dev/block/mmcblk0p27 /cache test source code 하기 파일에서 O_DIRECT 주석을 풀어주면 O_DIRECT 로 동작함.간단히 input file 을 open 하여 내용을 읽고 output 파일에 write 하는 예제임. 결과를 mos.. 더보기
git 에서 수정사항에 대한 patch file 만들기 git 에서 아래와 같은 수정사항이 있을때 system.h universal.h 의 수정사항만을 patch 파일로 만든다고 한다면, linux-2.6.32]$ git status # On branch master # Changed but not updated: # (use "git add ..." to update what will be committed) # (use "git checkout -- ..." to discard changes in working directory) # # modified: C110_Attach.cmm # modified: arch/arm/kernel/traps.c # modified: arch/arm/mach-s5pv210/include/mach/system.h # mod.. 더보기