public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* btrfsctl exit with 1 when succeed
@ 2009-11-11  6:16 Gong, Zhipeng
  2009-12-25  0:19 ` TARUISI Hiroaki
  0 siblings, 1 reply; 4+ messages in thread
From: Gong, Zhipeng @ 2009-11-11  6:16 UTC (permalink / raw)
  To: linux-btrfs@vger.kernel.org

We'd like to use btrfsctl in a shell script, however, btrfsctl exit wit=
h 1 even if the operation is successful, which is opposite to the usual=
 shell command convention.
Why btrfsctl add this conversion in the end?
=A0=A0=A0=A0=A0=A0=A0=A0 if (ret)
=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0 exit(0);
=A0=A0=A0=A0=A0=A0=A0=A0 else
=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0 exit(1);

Thanks
Zhipeng
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-12-27 23:39 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-11  6:16 btrfsctl exit with 1 when succeed Gong, Zhipeng
2009-12-25  0:19 ` TARUISI Hiroaki
2009-12-25  9:25   ` Goffredo Baroncelli
2009-12-27 23:39     ` TARUISI Hiroaki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox