forked from illumos/illumos-gate
-
Notifications
You must be signed in to change notification settings - Fork 111
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OS-5873 Need NFS client lockd support: fcntl F_SETLK returns ENOLCK i…
…n LX zone Reviewed by: Patrick Mooney <patrick.mooney@joyent.com> Reviewed by: Ryan Zezeski <ryan.zeseski@joyent.com> Approved by: Patrick Mooney <patrick.mooney@joyent.com>
- Loading branch information
Showing
11 changed files
with
2,711 additions
and
6 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,61 @@ | ||
# | ||
# This file and its contents are supplied under the terms of the | ||
# Common Development and Distribution License ("CDDL"), version 1.0. | ||
# You may only use this file in accordance with the terms of version | ||
# 1.0 of the CDDL. | ||
# | ||
# A full copy of the text of the CDDL should have accompanied this | ||
# source. A copy of the CDDL is also available via the Internet at | ||
# http://www.illumos.org/license/CDDL. | ||
|
||
# | ||
# Copyright 2017 Joyent, Inc. | ||
# | ||
|
||
PROG = lx_lockd | ||
|
||
PROG_OBJS = lockd.o nfs_tbind.o | ||
UTIL_OBJS = thrpool.o | ||
|
||
OBJS = $(PROG_OBJS) $(UTIL_OBJS) | ||
SRCS = $(PROG_OBJS:%.o=%.c) | ||
|
||
all: $(PROG) | ||
|
||
include ../Makefile.lx | ||
include $(SRC)/cmd/Makefile.cmd | ||
|
||
# override the install directory | ||
ROOTBIN = $(ROOTBRANDDIR) | ||
CLOBBERFILES = $(OBJS) $(ROOTPROG) | ||
|
||
CPPFLAGS += -I$(SRC)/cmd/fs.d/nfs/lib | ||
C99MODE = $(C99_ENABLE) | ||
LDLIBS += -lnsl -lsocket | ||
|
||
CERRWARN += -_gcc=-Wno-parentheses | ||
CERRWARN += -_gcc=-Wno-uninitialized | ||
|
||
.KEEP_STATE: | ||
|
||
install: all $(ROOTPROG) | ||
|
||
clean: | ||
$(RM) $(PROG) $(OBJS) | ||
|
||
lint: | ||
$(LINT.c) -erroff=E_SEC_PRINTF_VAR_FMT lockd.c $(LDLIBS) | ||
|
||
$(PROG): $(OBJS) | ||
$(LINK.c) -o $@ $(OBJS) $(LDLIBS) | ||
$(POST_PROCESS) | ||
|
||
%.o: %.c | ||
$(COMPILE.c) $< | ||
$(POST_PROCESS_O) | ||
|
||
%.o: $(SRC)/cmd/fs.d/nfs/lib/%.c | ||
$(COMPILE.c) $< | ||
$(POST_PROCESS_O) | ||
|
||
include $(SRC)/cmd/Makefile.targ |
Oops, something went wrong.