From owner-freebsd-geom@FreeBSD.ORG Sat Mar 1 11:00:40 2014 Return-Path: Delivered-To: freebsd-geom@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id E606FD70 for ; Sat, 1 Mar 2014 11:00:40 +0000 (UTC) Received: from mail-la0-x235.google.com (mail-la0-x235.google.com [IPv6:2a00:1450:4010:c03::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7333F1BA5 for ; Sat, 1 Mar 2014 11:00:40 +0000 (UTC) Received: by mail-la0-f53.google.com with SMTP id b8so3456284lan.12 for ; Sat, 01 Mar 2014 03:00:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=9AVzQPZ0/I+BESDj+P34bMFP4FkfRtS2XVbZqKbh0vs=; b=zH9WCQ+OTm6q4a2G8KXIUtRcP/pHiIrrs9fKRu2iYPcBRe3l7wW2zJl1ZNlEIDIM6a AhnNR2IqVtC3cu6T49oRmQGleJ86FPZmKrncTDvLNB8VnkO5i5IDRn4gzn1Pifq4a51g 1jiGtDkupeqYLhIM+jS7O4PVhu/2CNqppnHDxGVAgq13t8FkhiOU77RRJMqxbNHGRXTQ S3bNPlaZZk4d7QoBJ7Sk6vAGw8XO1N9lK447m6hwmK4mZl1RQMCf8FxcHaRvDAIAW9de 6cgeqR4Ds8oXkNUc3GfZS9X5LYvyCFQ7LSDfQVx/gXAvuqGC1bBH1epJrHz7/EHq4rWU lkzQ== MIME-Version: 1.0 X-Received: by 10.152.242.165 with SMTP id wr5mr1386174lac.47.1393671638576; Sat, 01 Mar 2014 03:00:38 -0800 (PST) Received: by 10.112.243.10 with HTTP; Sat, 1 Mar 2014 03:00:38 -0800 (PST) Date: Sat, 1 Mar 2014 14:30:38 +0330 Message-ID: Subject: editing geli code to write something in a file From: s m To: freebsd-geom@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.17 X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Mar 2014 11:00:41 -0000 hello all for some reason, i want to do some extra process when entered passphrase is correct in geli. in order to do that, i edit geli code (g_eli.c file) and add my code to g_eli_taste function. every thing is ok except writing some thing in a file. i can't use any standard library here. is there any way to do that? should i use kernel functions which works with vnode in order to do that??? if yes, how should i do it? please give me a point. thanks in advance SAM