-
-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This C program should be significantly faster than the shell script version. It does no locking and creates no subprocesses. Furthermore, the C program uses the Linux diskseq feature to ensure that Linux opens the correct block device. This requires kernel support that is not yet upstreamed.
- Loading branch information
Showing
6 changed files
with
385 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
CC=gcc | ||
CFLAGS := $(CFLAGS) -g3 -O2 -Wall -Wextra -Werror -fPIE -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE | ||
.PHONY: clean install all | ||
all: not-script | ||
|
||
%: %.c Makefile | ||
s=$$(pkg-config --cflags --libs xenstore) && $(CC) $(CFLAGS) -MD -MP -MF $@.dep -o $@ $< $$s | ||
|
||
clean: | ||
rm -f ./*.o ./*~ ./*.a ./*.so.* ./*.dep unicode-class-table.c | ||
|
||
install: | ||
install -d $(DESTDIR)/etc/xen/scripts | ||
install not-script $(DESTDIR)/etc/xen/scripts/qubes-block | ||
|
||
-include ./*.o.dep |
Oops, something went wrong.