From mboxrd@z Thu Jan 1 00:00:00 1970 From: Hans Reiser Subject: Re: Authoring a versioning plugin Date: Sat, 14 Jan 2006 14:23:29 -0800 Message-ID: <43C979E1.9080405@namesys.com> References: <200601111759.14638.fred@lab.matcom.uh.cu> <43C80EC3.7050003@namesys.com> <200601140107.49814.pvh@uvic.ca> <43C934D3.7040406@slaphack.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: list-help: list-unsubscribe: list-post: Errors-To: flx@namesys.com In-Reply-To: <43C934D3.7040406@slaphack.com> List-Id: Content-Type: text/plain; charset="us-ascii" To: David Masover Cc: Peter van Hardenberg , Jonathan Sailor , reiserfs-list@namesys.com, Yoanis Gil Delgado David Masover wrote: >Peter van Hardenberg wrote: > > >>On January 13, 2006 03:00 pm, you wrote: >> >> >> >>>On Fri, 13 Jan 2006, Hans Reiser wrote: >>> >>> >>> >>>>If someone figures out why we can't do it but /proc can, or even fixes >>>>it, it would be good. >>>> >>>> >>>It wouldn't be something so simple as echo's trailing newline, would it? >>> >>>-Jonathan >>> >>> >>Good thought, but no: >> >> >[...] > > >>norbs@cortana:/home/norbs/reiser/emptydir/..../plugin$ echo "ext-1" -n > >>fibration >> >> >[...] > > >>norbs@cortana:/home/norbs/reiser/emptydir/..../plugin$ irb >>irb(main):004:0> f = open('fibration', 'w') >>=> # >>irb(main):005:0> f.write('ext-1') >>=> 5 >>irb(main):006:0> f.close >>=> nil >>irb(main):007:0> exit >> >> >[...] > > >>I'd look more closely at how proc does it and how we do it, but I'm too tired >>for source digging tonight. >> >> > >I think the difference is that Reiser expects a null-terminated string, > > I'll happily take a patch to fix that..... >whereas Proc doesn't need the null, and can chop off newlines when needed. > >So, I think this would also work: > >echo -en 'ext-1\0' > fibration > > > > >