Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Node local temporary files/dirs
11-08-2017, 02:25 PM (This post was last modified: 11-08-2017 02:27 PM by lingu.)
Post: #21
RE: Node local temporary files/dirs
(11-03-2017 06:24 PM)zma Wrote:  
(11-03-2017 06:23 PM)YU_Xinjie Wrote:  
(08-07-2017 05:07 PM)zma Wrote:  /thinker/local/today/users/$USER/${progname}/${file_or_dir_name}

/thinker/local/today/all/$USER/${progname}/${file_or_dir_name}

@Zhiqiang

When are the parent dir of these dirs created in our installtion ?

Originally, /thinker/local is created by Autation by mode 777. So programs do not need to worry about the permission when `mkdir -p /thinker/local/$USER/abc`.

How about letting Autation handle again ?
Such as let Autation create following dirs with mode 777:
/thinker/local/today/
/thinker/local/today/users/
/thinker/local/today/all/

Yes, autation creates them by default http://tab.d-thinker.org/showthread.php?tid=9794 .

I feel it would be more appropriate for post-autation or partnmount to create such dirs. If we let autation do too much, we would have trouble installing glad on customers' own machines which we may or may not be able to run autation-install. Although we deprecate such an installation scenario, we still should make preparation for it by minimizing custom installation items in autation. This will also ease porting to other Linux distributions.
Find all posts by this user
Quote this message in a reply
11-08-2017, 05:29 PM
Post: #22
RE: Node local temporary files/dirs
(11-08-2017 02:25 PM)lingu Wrote:  
(11-03-2017 06:24 PM)zma Wrote:  
(11-03-2017 06:23 PM)YU_Xinjie Wrote:  
(08-07-2017 05:07 PM)zma Wrote:  /thinker/local/today/users/$USER/${progname}/${file_or_dir_name}

/thinker/local/today/all/$USER/${progname}/${file_or_dir_name}

@Zhiqiang

When are the parent dir of these dirs created in our installtion ?

Originally, /thinker/local is created by Autation by mode 777. So programs do not need to worry about the permission when `mkdir -p /thinker/local/$USER/abc`.

How about letting Autation handle again ?
Such as let Autation create following dirs with mode 777:
/thinker/local/today/
/thinker/local/today/users/
/thinker/local/today/all/

Yes, autation creates them by default http://tab.d-thinker.org/showthread.php?tid=9794 .

I feel it would be more appropriate for post-autation or partnmount to create such dirs. If we let autation do too much, we would have trouble installing glad on customers' own machines which we may or may not be able to run autation-install. Although we deprecate such an installation scenario, we still should make preparation for it by minimizing custom installation items in autation. This will also ease porting to other Linux distributions.

post-autation sound good to me for this.

Generally if some actions can be done in post-autation, we may not rely on autaion to do them.
Visit this user's website Find all posts by this user
Quote this message in a reply
11-09-2017, 09:27 AM
Post: #23
RE: Node local temporary files/dirs
(11-08-2017 05:29 PM)zma Wrote:  
(11-08-2017 02:25 PM)lingu Wrote:  
(11-03-2017 06:24 PM)zma Wrote:  
(11-03-2017 06:23 PM)YU_Xinjie Wrote:  
(08-07-2017 05:07 PM)zma Wrote:  /thinker/local/today/users/$USER/${progname}/${file_or_dir_name}

/thinker/local/today/all/$USER/${progname}/${file_or_dir_name}

@Zhiqiang

When are the parent dir of these dirs created in our installtion ?

Originally, /thinker/local is created by Autation by mode 777. So programs do not need to worry about the permission when `mkdir -p /thinker/local/$USER/abc`.

How about letting Autation handle again ?
Such as let Autation create following dirs with mode 777:
/thinker/local/today/
/thinker/local/today/users/
/thinker/local/today/all/

Yes, autation creates them by default http://tab.d-thinker.org/showthread.php?tid=9794 .

I feel it would be more appropriate for post-autation or partnmount to create such dirs. If we let autation do too much, we would have trouble installing glad on customers' own machines which we may or may not be able to run autation-install. Although we deprecate such an installation scenario, we still should make preparation for it by minimizing custom installation items in autation. This will also ease porting to other Linux distributions.

post-autation sound good to me for this.

Generally if some actions can be done in post-autation, we may not rely on autaion to do them.

Should I remove the logic of creating such dirs in Autation? I think not because in post-autation there can be logic to judge if theses dirs exist or not.
Find all posts by this user
Quote this message in a reply
11-09-2017, 06:45 PM
Post: #24
RE: Node local temporary files/dirs
(11-08-2017 05:29 PM)zma Wrote:  
(11-08-2017 02:25 PM)lingu Wrote:  
(11-03-2017 06:24 PM)zma Wrote:  
(11-03-2017 06:23 PM)YU_Xinjie Wrote:  
(08-07-2017 05:07 PM)zma Wrote:  /thinker/local/today/users/$USER/${progname}/${file_or_dir_name}

/thinker/local/today/all/$USER/${progname}/${file_or_dir_name}

@Zhiqiang

When are the parent dir of these dirs created in our installtion ?

Originally, /thinker/local is created by Autation by mode 777. So programs do not need to worry about the permission when `mkdir -p /thinker/local/$USER/abc`.

How about letting Autation handle again ?
Such as let Autation create following dirs with mode 777:
/thinker/local/today/
/thinker/local/today/users/
/thinker/local/today/all/

Yes, autation creates them by default http://tab.d-thinker.org/showthread.php?tid=9794 .

I feel it would be more appropriate for post-autation or partnmount to create such dirs. If we let autation do too much, we would have trouble installing glad on customers' own machines which we may or may not be able to run autation-install. Although we deprecate such an installation scenario, we still should make preparation for it by minimizing custom installation items in autation. This will also ease porting to other Linux distributions.

post-autation sound good to me for this.

Generally if some actions can be done in post-autation, we may not rely on autaion to do them.

Implemented in cod://post-autation ed0f18e0a73f0fd827fadc1404949d00f5ddc9fd and updated the design of post autation.
Visit this user's website Find all posts by this user
Quote this message in a reply
11-09-2017, 10:13 PM (This post was last modified: 11-09-2017 10:16 PM by lingu.)
Post: #25
RE: Node local temporary files/dirs
(11-09-2017 09:27 AM)xwcwt Wrote:  Should I remove the logic of creating such dirs in Autation? I think not because in post-autation there can be logic to judge if theses dirs exist or not.

dont bother until it bugs us or next time you work on this part of code, but it will be nice to add a quick comment there so that other engineers do not expand that part of code further.
Find all posts by this user
Quote this message in a reply
Post Reply 


Forum Jump: