ALLOC_INODE

Category
아이템: A(39)
포스트 갯수1

[라즈베리파이] 가상 파일시스템 동작 분석(유저 프로세스 입장)

By Guillermo Austin Kim | 2019년 1월 3일 | 
이번에 유저 어플리케이션 입장에서 가상 파일시스템 동작을 살펴보겠습니다. 먼저 유저 공간에서 실행하는 다음 코드를 같이 작성해 봅시다.1 #include <stdio.h>2 #include <stdlib.h>3 #include <unistd.h>4 #include <sys/types.h>5 #include <signal.h>6 #include <string.h>7 #include <fcntl.h>89 #define FILENAME_NAME "/home/pi/sample_text.text"1011 int main() 12 { 13 int fd = 0;14 ssize_t read_buf_size;15 off_t new_file_pos;