xfs
[Top] [All Lists]

getfattr and setfattr should return non-zero on fail

To: linux-xfs@xxxxxxxxxxx
Subject: getfattr and setfattr should return non-zero on fail
From: bjartur <svartman95@xxxxxxxxx>
Date: Fri, 02 Jul 2010 15:07:38 +0000
Cc: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:received:from:date :to:cc:fcc:subject:mime-version:content-type:content-id; bh=b4OONKB3csyzsEyV0R/EmRvQRDgKuuJn9N21Ry9yfB8=; b=n/vyHCrNdBFbu6uR6pqnRvym6a/VvEviWmPZmvCXOMbOo1Y/8c+pbxXe/OblIOkti1 wKzMD5dX5z80X4lGcxiOZTAWGHNpRdiu1w37rBBGUYxbvk6c6MadmzRmAMgLG4SoP1zO wkhsoPclhEIDRYRlZq3oCITZMxng9eF9TXoMk=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:date:to:cc:fcc:subject:mime-version:content-type :content-id; b=QAQii0w693vr+/hpmZQ1EPwtm+6wuKMq/PK5G85zFZIwkDXlpzawU4PyZRF6J1/r+X Pe59nSOm3LbnRogWbL3IvWPpqB9zNuob6Vtr96y0SaE8ESgpLIO0vqQHyNRNRsBsLDti m2eUJC/9tYNGUeFCm6RTyOQN9oeqAhinaYUgY=
Fcc: +outbox
When setfattr or getfattr fail, they return zero as a return code,
just as they do on success. This makes conditioning on fail/success
unnecessarily hard.

<Prev in Thread] Current Thread [Next in Thread>
  • getfattr and setfattr should return non-zero on fail, bjartur <=