mainGNU Parted - Support: sr #110102, Option to disable/ignore kernel...

 
 

sr #110102: Option to disable/ignore kernel updating in parted

Submitter:  None
Submitted:  Wed 06 Nov 2019 03:10:12 PM UTC
   
 
Category:  None Priority:  5 - Normal
Severity:  1 - Wish Status:  Wont Do
Privacy:  Public Assigned to:  None
Originator Email:  -email is unavailable- Open/Closed:  Closed
Operating System:  GNU/Linux
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 13 Nov 2019 12:32:48 AM UTC, comment #1: 

I don't think it's a good idea to implement something like this in parted. It would also be complicated by the fact that udev is monitoring the open/close and will trigger a reread of the partition table. Thanks for the suggestion though.

Brian C. Lane <bcl>
Group administrator
Wed 06 Nov 2019 03:10:12 PM UTC, original submission:  

Dear parted developers,

When I encountered some bugs (or FAD's, because they come from parted itself) in ansible's parted module  (see https://github.com/ansible/ansible/issues/63676), I came up with idea that they could be solved very easily if parted had an option enabling "no commit" mode, that is: only editing partition table on disk, without signaling the kernel to update partition info.

Currently, parted script stops at the first command which fails on ped_disk_commit_to_os(). My idea is: make commit_to_os optional (alternatively: delay commit_to_os() call after last command in script, so "failed to re-read the partition table" won't stop parted from executing all script.

What's your opinion about this? If you give me a green light, I'd dust off my C writting skills and submit a patch for evaulation.

With kind regards,
Robert Osowiecki

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by bcl (Posted a comment)
  • -email is unavailable- added by None (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2019-11-13 bcl StatusNone Wont Do
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code