Re: Deleting a line from a file

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mit, 2014-05-14 at 21:27 +0530, Saket Sinha wrote:
[...]
> I wanted to isolate the problem hence did not give the full context.
> Actually I have written a file-system utility which mounts my
> filesystem on a specific path and update it in /etc/fstab. When I
> umount it, I delete the path from the /etc/fstab.

I don't know if you want to do that - /etc/mtab is (historically?) used
to record actually mounted filesystems.
(At least) in the Linux world, there is /proc/mounts where the kernel
tells you exactly that.

	Bernd
-- 
Bernd Petrovitsch                  Email : bernd@xxxxxxxxxxxxxxxxxxx
                     LUGA : http://www.luga.at


_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies




[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux