From owner-freebsd-questions@freebsd.org Tue Jun 12 16:45:39 2018 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3320D10059A8 for ; Tue, 12 Jun 2018 16:45:39 +0000 (UTC) (envelope-from jude.obscure@yandex.com) Received: from forward104p.mail.yandex.net (forward104p.mail.yandex.net [IPv6:2a02:6b8:0:1472:2741:0:8b7:107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Yandex CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B90E86DBA9 for ; Tue, 12 Jun 2018 16:45:38 +0000 (UTC) (envelope-from jude.obscure@yandex.com) Received: from mxback12j.mail.yandex.net (mxback12j.mail.yandex.net [IPv6:2a02:6b8:0:1619::87]) by forward104p.mail.yandex.net (Yandex) with ESMTP id 9F255185A31 for ; Tue, 12 Jun 2018 19:45:35 +0300 (MSK) Received: from smtp4o.mail.yandex.net (smtp4o.mail.yandex.net [2a02:6b8:0:1a2d::28]) by mxback12j.mail.yandex.net (nwsmtp/Yandex) with ESMTP id MiDQdAUikz-jZuS0Xc6; Tue, 12 Jun 2018 19:45:35 +0300 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1528821935; bh=iNRut6Qp3eCzftZrceuoBPHyux1fciQ+jzgNsWlkqNk=; h=To:From:Subject:Message-ID:Date; b=SrP8WM6ApEmyuEPYuu3X4k5L75caFlnGhD92I7xyuT6mqdAUvgStTgaUdR0h3dg+R 0TZNA8rsykaFo9gMJRgqKwUPWJXFeqBj3v0cvbu6kJU4q0FGIwv5Yds5ztaqk89vxm mCRU1OpOJLp6gpJjOwB2FwBJRkuWiEFKuL1Jlxvw= Received: by smtp4o.mail.yandex.net (nwsmtp/Yandex) with ESMTPSA id GgrhrUOkhY-jYXKG2Ge; Tue, 12 Jun 2018 19:45:34 +0300 (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client certificate not present) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1528821934; bh=iNRut6Qp3eCzftZrceuoBPHyux1fciQ+jzgNsWlkqNk=; h=To:From:Subject:Message-ID:Date; b=TSW6PdLZ52rnLmzBIolSuUM35EGNnKrL3IxSaJtZxIxMnRSFS4Y8Optk/20MDNHE6 jhXYChglEn4y5bL3+K9T8pOWJSDNuHwUe552gikbdWnFTLfwtiqCHfkG9+8I24r/ME ssDFpfwBnRhJ01Cpda5yoQzk37il8ioRzw/2mua8= Authentication-Results: smtp4o.mail.yandex.net; dkim=pass header.i=@yandex.com To: freebsd-questions@freebsd.org From: Manish Jain Subject: A tricky problem: managing ext2fs extended attributes under FreeBSD Message-ID: <3c82eecd-b839-14c8-19a0-a493de58504a@yandex.com> Date: Tue, 12 Jun 2018 22:14:06 +0530 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.26 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jun 2018 16:45:39 -0000 Hi, I am running a 10.4 amd64 system in which the OS is FreeBSD. The root filesystem is UFS , whereas all my user data gets stored in an ext2fs partition. Extended attributes like unlinkable can be set with chflags under FreeBSD UFS and with chattr under Linux Ext2. There are times when I want to mark a file among my user data as non-deleteable. FreeBSD I think can set/honour flags only for UFS, not for Ext2 filesystem. Is there some way I can get Ext2 attributes to work under FreeBSD ? Thanks for any tips. Manish Jain