From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Tue, 31 Aug 2021 10:22:44 +0200 From: Alexey Gladkov To: ALT Linux Team development discussions Message-ID: <20210831082244.xfvaz2wnmubwmdf4@example.org> References: <20210831064805.GA13999@gyle.altlinux.org> <20210831075139.GA12811@altlinux.org> <20210831080743.GA7959@altlinux.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20210831080743.GA7959@altlinux.org> Subject: Re: [devel] I: linux/raw.h is no more available X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.12 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2021 08:22:45 -0000 Archived-At: List-Archive: List-Post: On Tue, Aug 31, 2021 at 11:07:44AM +0300, Alexey V. Vissarionov wrote: > On 2021-08-31 10:51:39 +0300, Dmitry V. Levin wrote: > >> fio-3.26-alt1 > >> from crc/crc32c-arm64.c:2: > >> crc/../os/os-linux.h:17:10: fatal error: linux/raw.h: > >> No such file or directory > >> 17 | #include > >> util-linux-2.37.2-alt1 > >> checking for syscall pivot_root... SYS_pivot_root > >> configure: error: raw selected, but required raw.h > >> header file not available > > В linux 5.14 больше нет , см. https://git.kernel.org/torvalds/c/603e4922f1c8 > > Дим, а что тебе помешало процитировать оттуда буквально пару > строчек? Наверное, потому что всё и так было понятно. > remove the raw driver > > The raw driver used to provide direct unbuffered access to block > devices before O_DIRECT was invented. It has been obsolete for > more than a decade. > > Или даже `man raw`: > > NOTES > Rather than using raw devices applications should prefer open(2) > devices, such as /dev/sda1, with the O_DIRECT flag. Алексей, а что помешало перевести эти строчки (вдруг кто-то не только браузером не обладает, но и английским не владеет) ? > Всем (даже тем, кто этим никогда не интересовался) сразу было бы > понятно, что вместо /dev/raw* следует использовать O_DIRECT -- Rgrds, legion