Login | Register
My pages Projects Community openCollabNet

Discussions > users > Re: /etc/fsvs is modified only after the changes have been committed

fsvs
Discussion topic

Back to topic list

Re: /etc/fsvs is modified only after the changes have been committed

Author Pieter Ennes <lists at spam dot ennes dot net>
Full name Pieter Ennes <lists at spam dot ennes dot net>
Date 2008-10-20 14:10:39 PDT
Message Hello Philipp, and list,

I just subscribed last week, and ran into the same thing. Please see
below...

Philipp Marek wrote:
> Hello Farzad!
>
> On Monday 13 October 2008 Farzad FARID wrote:
>> I'm having the following issue with FSFS 1.1.16 and the "/etc" directory
>> I'm versionning: apparently, the "/etc/fsvs/xxxxxxx/Urls" file is modified
>> *after* the "fsvs commit" command has finished.
> Yes, this is per design.
>
>> As a result, there are always 2 uncommitted change in my "/etc" folder ;)
> ...
>> I'm a bit embarrassed, because I wanted to use a cron script to check for
>> uncommitted changes, but 'fsvs commit -o empty_commit=no -m "cron" /etc',
>> as specified in the fsvs-options manpage, would commit this same change
>> over and over :)
>>
>> Is there an elegant solution to my problem, apart from ignoring
>> "/etc/fsvs", which is a solution I don't really like?

> Not yet. And if you ignored the whole directory, you wouldn't have the ignore
> patterns versioned anymore.

Ok, I agree that ignore patterns should go in /etc. But...


> There are two ways for that problem:
> - Just ignore the "Urls" files ("/etc/fsvs/*/Urls")
> - Have some other idea :-)
>
> I briefly thought whether it would be good to have an option to ignore
> the "Urls" file (like the WAA is ignored automatically), perhaps on "status"
> only ...
>
> That would be another special case in the code ... but maybe the only way,
> especially for the "stop_change" case ... maybe just implement that there?

> Do you have any other ideas?
>

But why should the state of the 'current revision' go in /etc as well?

Referring to the the FHS[*] this may not be the best (or at least an
unusual) location for it. FHS mentions that files in /etc should be
'configuration files' and also be 'static'. At the same time it suggests
/var for "spool directories and files, administrative and logging data,
and transient and temporary files".

I was wondering whether we could realise this split for fsvs too. If so,
my first hunch would be that this will solve the discussed problem as a
bonus since, indeed, /etc will only contain static files.

> Do you know C, and would like to send a patch?

Not well enough unfortunately :)


[*] http://www.pathname.​com/fhs/pub/fhs-2.3.​html


Best regards,
--
 - Pieter

« Previous message in topic | 8 of 17 | Next message in topic »

Messages

Show all messages in topic

/etc/fsvs is modified only after the changes have been committed farzy Farzad FARID 2008-10-13 06:21:41 PDT
     Re: /etc/fsvs is modified only after the changes have been committed pmarek P.Marek 2008-10-13 08:12:21 PDT
         Re: /etc/fsvs is modified only after the changes have been committed pmarek P.Marek 2008-10-13 08:28:48 PDT
         Re: /etc/fsvs is modified only after the changes have been committed farzy Farzad FARID 2008-10-13 08:48:39 PDT
             Re: /etc/fsvs is modified only after the changes have been committed pmarek P.Marek 2008-10-13 08:59:55 PDT
         Re: /etc/fsvs is modified only after the changes have been committed griffon26 Maurice van der Pot 2008-10-13 10:21:58 PDT
             Re: /etc/fsvs is modified only after the changes have been committed pmarek P.Marek 2008-10-13 11:04:19 PDT
         Re: /etc/fsvs is modified only after the changes have been committed Pieter Ennes <lists at spam dot ennes dot net> Pieter Ennes <lists at spam dot ennes dot net> 2008-10-20 14:10:39 PDT
             Re: /etc/fsvs is modified only after the changes have been committed pmarek P.Marek 2008-10-21 01:51:58 PDT
                 Re: /etc/fsvs is modified only after the changes have been committed pmarek P.Marek 2008-10-21 23:49:38 PDT
                 Re: /etc/fsvs is modified only after the changes have been committed farzy Farzad FARID 2008-10-22 01:22:10 PDT
                     Re: /etc/fsvs is modified only after the changes have been committed Pieter Ennes <lists at spam dot ennes dot net> Pieter Ennes <lists at spam dot ennes dot net> 2008-10-22 01:36:32 PDT
                         Re: /etc/fsvs is modified only after the changes have been committed pmarek P.Marek 2008-10-22 09:25:07 PDT
                 Re: /etc/fsvs is modified only after the changes have been committed griffon26 Maurice van der Pot 2008-10-22 09:36:52 PDT
                     Re: /etc/fsvs is modified only after the changes have been committed pmarek P.Marek 2008-10-22 10:11:40 PDT
                         Re: /etc/fsvs is modified only after the changes have been committed griffon26 Maurice van der Pot 2008-10-22 10:13:22 PDT
     RE: /etc/fsvs is modified only after the changes have been committed manolson Auriel Manolson 2009-04-16 16:18:20 PDT
Messages per page: